def destroy (self): """B.destroy () -> None Destroys the Bin and removes it from its event system. """ if self.child: w = self.child w.parent = None self.child = None w.destroy () del w BaseWidget.destroy (self)
def destroy(self): """B.destroy () -> None Destroys the Bin and removes it from its event system. """ if self.child: w = self.child w.parent = None self.child = None w.destroy() del w BaseWidget.destroy(self)
def destroy(self): """C.destroy () -> None Destroys the Container and removes it from its event system. """ _pop = self.children.pop while len(self.children) > 0: widget = _pop() widget.parent = None widget.destroy() del widget # del self.children BaseWidget.destroy(self)