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:

--CODE---------------

import Tkinter
import ttk

master = Tkinter.Tk()

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

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

master.mainloop()

------------------------

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

Can be done?

Regards.

Cristian Abarzúa  

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to