MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / destroy

Method destroy

lib/matplotlib/backends/backend_qt.py:667–677  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

665 self.window.raise_()
666
667 def destroy(self, *args):
668 # check for qApp first, as PySide deletes it in its atexit handler
669 if QtWidgets.QApplication.instance() is None:
670 return
671 if self.window._destroying:
672 return
673 self.window._destroying = True
674 if self.toolbar:
675 self.toolbar.destroy()
676 self.window.close()
677 super().destroy()
678
679 def get_window_title(self):
680 return self.window.windowTitle()

Callers 1

_widgetclosedMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected