On Sun, May 15, 2005 at 06:50:19PM +0300, Nikos Kouremenos wrote:
>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

Emitted when the cursor moves. Note that the cursor isn't the same as
the selected item at all times. By holding Ctrl down and using the arrow
keys you ca move the cursor without moving the selection.

>>  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.
>> 
>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)

The signal "cursor-changed" seems to behave similar to "move-cursor".
So, that one doesn't do it either :(

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]
http://magnus.therning.org/

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

"Sendmail" and "make" are two well known programs that are pretty widely
regarded as being debugged into existence. That's why their command
languages are so poorly thought out and difficult to learn.  It's not
just you -- everyone finds them troublesome.
     -- Peter van der Linden, Expert C Programming, p. 220

Attachment: pgpqJZ3wGQPU1.pgp
Description: PGP signature

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to