[pygtk] unusual multiple selection in a TreeView
Jeremy Morel
morel.jeremy at gmail.com
Wed May 23 23:11:35 WST 2007
Hi list !
I am trying to create an unsual multiple selection in a TreeView.
I want that when you click on a item in the treeview, you select it (or
deselect it if it was already clicked) and that it has no effect on the
other item selected in the treeview. In fact, I want the selection to behave
the way it does when gtk.SELECTION_MULTIPLE is set, and when the CTRL key is
pressed, but with no key pressed.
I can think of two ways of doing that :
- make the treeview believe that the ctrl key is pressed
- save current list of selected itemps and react to the 'changed' event (or
an other event) to update the list and then update the treeview wioth the
list.
Is there other options ? I couldn't find anything on that subject (but since
I am new to pyGtk, I don't know how to search efficiently)
If there is no other option, is the first one possible ?
If it is not, do you think of an efficient way of doing the second option ?
Thanks in advance,
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20070523/89d498fc/at=
tachment.htm
More information about the pygtk
mailing list