title: A widget for a list or table with pictures in the cells in Tkinter
body: <p>I need a widget that act like a list with columns. The cells can have values as integers, strings or <strong>pictures</strong>.</p>
  
  <p>The Tkinter own <code>Listbox</code> can not have columns. The <code>Treeview</code> is not able to have pictures as values (except the first column <code>#0</code>).</p>
  
  <p>Are there any Tkinter extensions that could fit my needs? Or how could I create something like this myself?</p>
  
  <p>Some example code that could be used as a basis for a answer.</p>
  
  <pre><code>#!/usr/bin/env python3
  
  from tkinter import *
  from tkinter import ttk
  from PIL import Image
  from PIL import ImageTk
  
  if __name__ == '__main__':
      root = Tk()
  
      # or a Listbox!!!
      tree = ttk.Treeview(root,
                          columns = ('one'))
      tree.heading('one', text='one')
      tree.pack()
  
      tree.img = Image.new(mode='RGBA', size=(10, 20), color='red')
      tree.img = ImageTk.PhotoImage(tree.img)
  
      for i in range(50):
          tree.insert(parent='',
                     index=END,
                     image=tree.img,
                     text='',
                     values = i)
  
      root.mainloop()
  </code></pre>