[pygtk] multi selection in treeview does not work

Luke Symes allsymes at gmail.com
Sun Feb 7 08:47:04 WST 2010


Hi Cornelius,

> I'd like to select more than one entry, but it is not possible...
> I got the rubberbanding activated...


Get the treeview from gtk.Builder:
treeview = builder.get_object('myTreeview')

then, from http://www.pygtk.org/pygtk2tutorial/sec-TreeSelections.html:

treeselection = treeview.get_selection()
treeselection.set_mode(gtk.SELECTION_MULTIPLE)

Hope this helps,

Luke.




More information about the pygtk mailing list