示例#1
0
 def __init__(self, tree, path, name):
     Node.__init__(self, name)
     self._tree = tree
     self._directory_path = path
     self._loaded = False
     self._state = STATE_ORDER.index(
         self._tree.app.directories.get_state(path))
示例#2
0
 def __len__(self):
     if not self._loaded:
         self._load()
     return Node.__len__(self)
示例#3
0
 def __len__(self):
     if not self._loaded:
         self._load()
     return Node.__len__(self)
示例#4
0
 def __init__(self, tree, path, name):
     Node.__init__(self, name)
     self._tree = tree
     self._directory_path = path
     self._loaded = False
     self._state = STATE_ORDER.index(self._tree.app.directories.get_state(path))