Hi to all, list: Well, I wanted to ask for some help on some subject. I have a TreeCtrl with a _treeList variable:
_treeList = [ ( 'Parent 1', ['Child 1.1','Child 1.2'] ), ( 'Parent 2', [] ), ( 'Parent 3', [ 'Child 3.1', 'Child 3.2'] ), ( 'Parent 4', ['Child 4'] ) ] self.tree = wx.TreeCtrl(... self.root = self.tree.AddRoot("Main") # I make the menu with: for item in _treeList: child = self.tree.AppendItem(self.root, item[0]) for childItem in item[1]: self.tree.AppendItem(child, childItem) # Then expand the root self.tree.Expand(root) Now, I'm looking for some code that would expand all trees branches, and not just the root. And I don't seem to manage to code something like that. Any ideas on how this could be done? Thanks. Daniel ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor