pygtk  

Re: [pygtk] multi selection in treeview does not work

Luke Symes
Sat, 06 Feb 2010 16:47:54 -0800

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.


_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/