def destroy(self): ViewBase.destroy(self) Container.destroy(self)
def destroy(self): """Detaches the window from document and application and removes it from the screen.""" self.set_document(None) application()._remove_window(self) Container.destroy(self)