Return to Snippet

Revision: 4180
at November 2, 2007 05:06 by arcturus


Initial Code
treeview = self.tree.get_widget("myTreeView")
liststore = gtk.ListStore(str) # create a list store with just one column (which holds a string)
treeview.set_model(liststore)

tc = gtk.TreeViewColumn("TheTitle")
treeview.append_column(tc)

cr = gtk.CellRendererText()
tc.pack_start(cr, True)
tc.add_attribute(cr, "text", 0)

Initial URL

                                

Initial Description

                                

Initial Title
Simple list box

Initial Tags
python

Initial Language
Python