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 was looking for a "selection_changed" or "changed" signal for
TreeView, but didn't find any!

What version are you using?

This is what I have here:

ii  python-gtk2    2.6.1-0ubuntu2 Python bindings for the GTK+ widget set
ii  python2.4-gtk2 2.6.1-0ubuntu2 Python bindings for the GTK+ widget set

>I'm sure this is in the FAQ somewhere.

I've been spending quite some time looking for it, it's well hidden if
it's in there :(

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

Am I being overly harsh or do others think that the multi-thousand bit
key is about sowing fear, uncertainty, and doubt for commercial gain?
DES? Not big enough! Triple DES? Not big enough! IDEA? Not big enough!
What you need is Dr.  Phineas P. Snakeoil's mystery elixir! Filled
with matrices and Galois fields to improve the digestion of dyspeptic
managers everywhere! Step right up and get a whole case full! Don't
ask what's inside ladies and gentlemen! It's a patent medicine that is
only available here.
      -- Stephen M. Gardner

Attachment: pgpbGYAXmZxgL.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