[pygtk] problem with TreeView + ListStore
Darren Hart
darren at dvhart.com
Mon Sep 10 12:11:16 WST 2007
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.
--
Darren Hart
More information about the pygtk
mailing list