dabo Commit
Revision 4083
Date: 2008-05-12 13:11:03 -0700 (Mon, 12 May 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4083

Changed:
U   trunk/dabo/ui/uiwx/dTreeView.py

Log:
Added the 'expandBranch()' and 'collapseBranch()' methods.


Diff:
Modified: trunk/dabo/ui/uiwx/dTreeView.py
===================================================================
--- trunk/dabo/ui/uiwx/dTreeView.py     2008-05-12 13:48:01 UTC (rev 4082)
+++ trunk/dabo/ui/uiwx/dTreeView.py     2008-05-12 20:11:03 UTC (rev 4083)
@@ -549,8 +549,18 @@
                                        if not nd.IsRootNode]
                for n in nds:
                        self.collapse(n)
-       
-       
+
+
+       def expandBranch(self, nd):
+               """Expands the specified node, as well as any of its child 
nodes."""
+               self.ExpandAllChildren(nd.itemID)
+
+
+       def collapseBranch(self, nd):
+               """Collapses the specified node, as well as any of its child 
nodes."""
+               self.CollapseAllChildren(nd.itemID)
+
+
        def showNode(self, node):
                self.EnsureVisible(node.itemID)
                




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to