[pygtk] problem with TreeView + ListStore

John Finlay finlay at moeraki.com
Tue Sep 4 07:31:34 WST 2007


Guillermo Heizenreder wrote:
> Hi list
> I'm developing a application for learn pygkt, and I need to know when a
> user selected or clicked one determinate row of my TreeView for shot
> another signal .
>
> Study the tutorial [1] I began to see the explanation that I see in the
> chapter 14.7. TreeView Signal and found one in particular
> "select-cursor-row", but I don't understood  how implementing.
>
> Something like that.
>    if user_selected_row:
>       self.hbox_118.show()
>       print "YES"	
>
> NOTE: self.hbox_118 = wTree.get_widget("hbox118")
>
> Thank and Regard
>   
> [1] http://www.pygtk.org/pygtk2tutorial/sec-TreeViewSignals.html
>
> P/D: my English it to bad, I'm a novice.
>   
Hi Guillermo,

You should look at the TreeSelection "changed" signal to see if that 
does what you want.

John


More information about the pygtk mailing list