469,572 Members | 1,210 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

How to read a wxTreeCtrl


Hi,

I want to read a wxTreeCtrl from the root since I want to store all
the information in it in a python dictionary. I know that the methods
I have to use are ItemHasChildren, GetFirstChild and GetNextChild and
I have been success in getting the first node in this manner:

while child.IsOk():
print wx.TreeCtrl.GetItemText ( self, child )
if wx.TreeCtrl.ItemHasChildren ( self, child ):
(child, cookie) = wx.TreeCtrl.GetNextChild( self,
child, cookie )
else:
(child, cookie) = wx.TreeCtrl.GetNextChild( self,
child, cookie )

my problem is that each one of this nodes has others children whose
has its values. How can I read more that one level?

Thanks in advance,
Daniel del Pozo

Jul 18 '05 #1
0 1462

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Krzysztof Kaczkowski | last post: by
reply views Thread by Brendan | last post: by
11 posts views Thread by Markus Breuer | last post: by
12 posts views Thread by Steven T. Hatton | last post: by
1 post views Thread by mitsura | last post: by
1 post views Thread by Jose Reckoner | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.