def destroy(self): """Destroy this Container and all of its contents.""" contents = self._contents while contents: comp = contents[-1] comp.destroy() assert not contents or contents[-1] is not comp, \ "%r failed to remove itself from container on destruction" % comp Component.destroy(self)
def destroy(self): ViewBase.destroy(self) Component.destroy(self)