[wxPython-users] TreeCtrl GetNextVisible

Robin Dunn robin at alldunn.com
Fri Sep 1 08:36:13 PDT 2006


Saketh Bhamidipati wrote:
> A method of mine iterates through a TreeCtrl and writes data to an XML 
> file using ElementTree. In order to move the iterator forward, I use 
> GetNextVisible. When writing this method, I did not know that the node 
> actually has to be visible for GetNextVisible to return it. This is 
> causing problems for me now that I have many nodes in a TreeCtrl that 
> require a scrollbar.
> 
> I still want to iterate through the TreeCtrl, but without the major 
> issue that all nodes must be visible for the iteration to work.
> 

Use GetFirstChild/GetNextChild.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list