8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cff1d7 commit a09ddb8Copy full SHA for a09ddb8
lib/matplotlib/backends/backend_qt.py
@@ -522,9 +522,6 @@ class FigureManagerQT(FigureManagerBase):
522
def __init__(self, canvas, num):
523
self.window = MainWindow()
524
super().__init__(canvas, num)
525
- self.window.closing.connect(
526
- # The lambda prevents the event from being immediately gc'd.
527
- lambda: CloseEvent("close_event", self.canvas)._process())
528
self.window.closing.connect(self._widgetclosed)
529
530
if sys.platform != "darwin":
@@ -569,6 +566,7 @@ def full_screen_toggle(self):
569
566
self.window.showFullScreen()
570
567
571
568
def _widgetclosed(self):
+ CloseEvent("close_event", self.canvas)._process()
572
if self.window._destroying:
573
return
574
self.window._destroying = True
0 commit comments