[pygtk] problem with TreeView + ListStore

Guillermo Heizenreder gheize at gmail.com
Mon Sep 10 17:33:05 WST 2007


El dom, 09-09-2007 a las 21:11 -0700, Darren Hart escribió:
> On Monday 03 September 2007 16:31:34 John Finlay wrote:
> > 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.
> 
> Or the TreeView "cursor_changed" signal (I think that's what it's called) - 
> which is only one item at a time - while the selection signal John mentioned 
> will work for a multiple selection.
:D
At the time I'm using the signal "changed" and my application respond
very well, but the signal "cursor_changed" is very interesting. I'm
start to use that, the tell you.
Thanks for all answered.
Regards.   
> 
-- 
Heizenreder Guillermo
http://code.google.com/u/gheize/
http://gheize.wordpress.com/



More information about the pygtk mailing list