[pygtk] On displaying a TreeView and selecting the right element...

Michal Pasternak michal at pasternak.w.lub.pl
Sat Mar 13 03:11:50 WST 2004


Martin Gadbois [Fri, Mar 12, 2004 at 01:56:52PM -0500]:
> How to select the right initial value in a gtk.TreeView when displaying it?

Use TreeSelection object. If your tree is really a flat list, set
TreeSelection path to (n,) (n being number of the selected item)



More information about the pygtk mailing list