Пример #1
0
 def Delete(self):
     TreeItem.Delete(self)
     for arg in self.GetArguments():
         if isinstance(arg, TreeLink):
             if arg.target:
                 arg.target.dependants.remove(arg)
             arg.owner = None
             arg.target = None
             del arg
Пример #2
0
 def Delete(self):
     self.UnRegisterEvent(self.name)
     TreeItem.Delete(self)
Пример #3
0
 def Delete(self):
     for child in self.childs[:]:
         child.Delete()
     TreeItem.Delete(self)