Hi!
I'm just porting an application from Gtk-- 1.2 to gnome-python from
CVS. I want to use the new TreeStore/TreeView interface instead of
CTree. However, when I want to append a row in the tree, it is added
in the view, but the contents are not set/displayed.
I use something like this code sequence:
model = gtk.TreeStore(gobject.TYPE_STRING)
view = gtk.TreeView(model)
renderer = gtk.CellRendererText()
column = gtk.TreeViewColumn("Connection", renderer)
view.append_column(column)
it = model.append(None)
model.set(it, 0, "foobar", -1)
Regards & Thx, Andy
--
Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | [EMAIL PROTECTED]
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/