Changeset 3236
- Timestamp:
- 07/11/07 19:07:48 (1 year ago)
- Files:
-
- branches/stable/dabo/ui/uiwx/dTreeView.py (modified) (2 diffs)
- trunk/dabo/ui/uiwx/dTreeView.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable/dabo/ui/uiwx/dTreeView.py
r3054 r3236 784 784 785 785 def makeDirTree(self, dirPath, wildcard=None, showHidden=False): 786 """Make this dTreeView show a filesystem directory hierarchy. 787 788 Warning: Don't use this for huge hierarchies, as it blocks while 789 filling the complete tree, instead of only filling the nodes as 790 they are opened. 791 """ 786 792 self.clear() 787 793 # Add any trailing slash character … … 815 821 continue 816 822 nd.appendChild(f) 823 817 824 def sortNode(arg, currDir, fNames): 818 self.SortChildren(self._pathNode[currDir].itemID) 825 if currDir in self._pathNode: 826 self.SortChildren(self._pathNode[currDir].itemID) 827 819 828 os.path.walk(dirPath, addNode, showHidden) 820 829 os.path.walk(dirPath, sortNode, None) trunk/dabo/ui/uiwx/dTreeView.py
r3054 r3236 784 784 785 785 def makeDirTree(self, dirPath, wildcard=None, showHidden=False): 786 """Make this dTreeView show a filesystem directory hierarchy. 787 788 Warning: Don't use this for huge hierarchies, as it blocks while 789 filling the complete tree, instead of only filling the nodes as 790 they are opened. 791 """ 786 792 self.clear() 787 793 # Add any trailing slash character … … 815 821 continue 816 822 nd.appendChild(f) 823 817 824 def sortNode(arg, currDir, fNames): 818 self.SortChildren(self._pathNode[currDir].itemID) 825 if currDir in self._pathNode: 826 self.SortChildren(self._pathNode[currDir].itemID) 827 819 828 os.path.walk(dirPath, addNode, showHidden) 820 829 os.path.walk(dirPath, sortNode, None)
