[Tkinter-discuss] Treeview with a single column header

craf pyclutter at gmail.com
Tue Apr 5 21:46:02 CEST 2011

I'm testing the treeview widget, and I want to display data in a single
column with a header.

My code to do this is:


import Tkinter
import ttk

master = Tkinter.Tk()

tabla = ttk.Treeview(master, columns=('widgets'))
tabla.heading('widgets', text='Item')

tabla.insert('',0,'widgets', text="date1")



The problem is that the title puts me in a second column and the data in
the first.

Can be done?


Cristian Abarzúa  

More information about the Tkinter-discuss mailing list