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

Method _widgetclosed

lib/matplotlib/backends/backend_qt.py:630–641  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

628 self.window.showFullScreen()
629
630 def _widgetclosed(self):
631 CloseEvent("close_event", self.canvas)._process()
632 if self.window._destroying:
633 return
634 self.window._destroying = True
635 try:
636 Gcf.destroy(self)
637 except AttributeError:
638 pass
639 # It seems that when the python session is killed,
640 # Gcf can get destroyed before the Gcf.destroy
641 # line is run, leading to a useless AttributeError.
642
643 def resize(self, width, height):
644 # The Qt methods return sizes in 'virtual' pixels so we do need to

Callers

nothing calls this directly

Calls 3

CloseEventClass · 0.90
_processMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected