Changeset 4083

Show
Ignore:
Timestamp:
05/12/08 13:11:03 (3 months ago)
Author:
ed
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dTreeView.py

    r4059 r4083  
    550550        for n in nds: 
    551551            self.collapse(n) 
    552      
    553      
     552 
     553 
     554    def expandBranch(self, nd): 
     555        """Expands the specified node, as well as any of its child nodes.""" 
     556        self.ExpandAllChildren(nd.itemID) 
     557 
     558 
     559    def collapseBranch(self, nd): 
     560        """Collapses the specified node, as well as any of its child nodes.""" 
     561        self.CollapseAllChildren(nd.itemID) 
     562 
     563 
    554564    def showNode(self, node): 
    555565        self.EnsureVisible(node.itemID)