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
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
