On 5/15/05, Magnus Therning <[EMAIL PROTECTED]> 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:
>
> move-cursor
not sure what it does
> select-cursor-row
not sure what it does
> toggle-cursor-row
not sure what it does
> row-activated
this is when you double click the row
> None of these is the one I need, and the tutorial doesn't offer much
> help either.
>
> All help is appreciated...
>
> /M
This is how we do it:
def on_services_treeview_cursor_changed(self, widget):
'''When we select a row :
activate buttons if needed'''
model, iter =
self.services_treeview.get_selection().get_selected()
if not iter: return
jid = model.get_value(iter, 1)
node = model.get_value(iter, 2)
Tut doesn't have this?
bug the tutorial maintainer to add sth similar
GL
--
Nikos Kouremenos | Jabber ID: [EMAIL PROTECTED] | http://members.hellug.gr/nkour
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/