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
def Delete(self): self.UnRegisterEvent(self.name) TreeItem.Delete(self)
def Delete(self): for child in self.childs[:]: child.Delete() TreeItem.Delete(self)