On Sun, May 15, 2005 at 04:23:37PM +0100, Magnus Therning wrote:
> I can't seem to find what signal will be emitted when a row in a
> TreeView (with ListStore) is selected. I've tried the following signals:
You connect to the TreeView's selected object's "changed" signal, then in
your call back you check for what actually is selected. Assuming multiple
selection mode:
treeview.get_selection().connect("changed", self.on_selection_changed, ...)
...
def on_selection_changed(selection, ...):
model, paths = selection.get_selected_rows()
if paths:
...
I'm sure this is in the FAQ somewhere.
Dave Cook
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/