[pygtk] TreeView on selection changed signal?

jordi jordi at flumotion.com
Mon Apr 21 17:27:50 WST 2008


Hi all,

while using multiple-selection, I'm trying to connect a callback to an
event in order to know when the selection has changed. When using single
selection, I had been using the cursor-changed event:

self._view.connect('cursor-changed', self._view_cursor_changed_cb)

That used to work fine for the single selection mode, but not for the
multiple selection. The difference is on the fact that, when doing
"get-selected-rows", I do not get the newest selected elements (at the
multiple selection I mean).

Should I connect my callback to another event, instead?

thanks,

jordi


More information about the pygtk mailing list