[pygtk] TreeView on selection changed signal?

jordi jordi at flumotion.com
Mon Apr 21 18:15:51 WST 2008


I just got the answer on the IRC. I should use the changed signal from
the selection.get_selected(). 

On Mon, 2008-04-21 at 11:27 +0200, jordi wrote:
> 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
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


More information about the pygtk mailing list