On Sun, May 15, 2005 at 06:58:46PM -0300, Christian Robottom Reis wrote:
>On Sun, May 15, 2005 at 12:01:39PM -0700, David M. Cook wrote:
>> 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.
>
>Yeah, at 
>
>    http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.011.htp
>
>I've improved the stub example there.

I would have expected to find it in the tutorial as well though. Section
14.8 on TreeSelections.

Oh, BTW I've added the FAQ to my bookmarks now :)

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

  The point of academic attacks is not exhibiting practical breaks;
the point is that only a trained cryptographer can tell whether a
given algorithm is secure or not. The author of an algorithm says: "My
cipher is secure, and trust me, I am an expert at this. And to prove
that I am a real good expert, I challenge other experts to find even
the most impractical, academic flaw in my cipher".
  Just like glue. Commercial ads state that the foobar glue can stick
an elephant to the ceiling. Who needs to stick an elephant to the
ceiling? But if it can do that, people will trust its sticking
strength.
      -- Thomas Pornin, sci.crypt

Attachment: pgpf0CsUqC8VY.pgp
Description: PGP signature

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

Reply via email to