|
2010-01-27
, 06:59
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#2
|
When a 'row-activated' signal is sent, I get a different set of parameters. I get the gtk.TreeView but 'iter' is set to what looks like a path descriptor and 'path' is a gtk.TreeViewColumn
The Following User Says Thank You to danielwilms For This Useful Post: | ||
|
2010-01-27
, 07:27
|
Posts: 316 |
Thanked: 150 times |
Joined on May 2006
|
#3
|
Bear in mind that I've not done any desktop coding (outside of Java/SWT) for abour five years .. i.e. my GTK-foo is very rusty and/or obsolete. Also I'm using this as an exercise to learn Python.
My primary concern is that I am hitting a problem with a treeview. I have one inserted into a pannablearea. Data goes in and is displayed and branches expand. The problem is that they don't collapse again. Is there a property or attribute that I've missed?
In attempting to work around this, I figured that binding to one of the row signals may give me notification that the user is attempting to collapse a branch. The docs at http://www.pygtk.org/pygtk2tutorial/...ewSignals.html describe the call-back template I should use :
When a 'row-activated' signal is sent, I get a different set of parameters. I get the gtk.TreeView but 'iter' is set to what looks like a path descriptor and 'path' is a gtk.TreeViewColumn
Am I going nuts, doing something crazily wrong or is my machine just trying to send me batty?