[pygtk] Displaying children in a gtk.TreeModelFilter
Lionel Dricot
zeploum at gmail.com
Fri Feb 19 20:04:49 WST 2010
Hello,
I'm currently working closely with gtk.TreeModelFilter and I'm currently
stuck.
I've discovered that in order to have a row visible, that row has to return
True against the visible_func but, also, that *all his parents have to be
visible*.
This is rather important and not written in any GTK documentation I've seen
(maybe I should send a patch against pygtk doc for that).
As I consequence, I'm currently looking for a way to display children that
have an hidden parent. That children would be displayed at the root.
For example :
a
--> b
------->c
---------->d
(d is child of c which is child of b which is child of b)
if b is not visible, my tree would display :
a
c
-->d
(currently, it only display "a").
How can I do that with my treemodelfilter ? It seems for me a rather
important usecase for a treemodelfilter but I cannot find any documentation
or code sample on the web about a way of doing that.
Thanks in advance for help or any useful input on this.
Lionel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100219/dc754f5d/attachment.htm
More information about the pygtk
mailing list