[pygtk] multi selection in treeview does not work
Cornelius Kölbel
cornelius.koelbel at lsexperts.de
Mon Feb 8 04:17:56 WST 2010
Hi Luke,
thanks a lot. that helped. I thought the GTK.Builder would take care for
this when configuring it in glade. But it didn't. Works fine as expected
now.
Kind regards
Cornelius
Luke Symes schrieb:
> 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.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20100207/cd4a4a84/attachment.pgp
More information about the pygtk
mailing list