From 8e73c6db170401582017b600215372c46234df98 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Wed, 27 Nov 2024 15:09:03 -0600 Subject: [PATCH] Backport PR #29182: Update backend_qt.py: parent not passed to __init__ on subplottool --- lib/matplotlib/backends/backend_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_qt.py b/lib/matplotlib/backends/backend_qt.py index 7a09d11f46f9..432bbb1ffdb6 100644 --- a/lib/matplotlib/backends/backend_qt.py +++ b/lib/matplotlib/backends/backend_qt.py @@ -856,7 +856,7 @@ def set_history_buttons(self): class SubplotToolQt(QtWidgets.QDialog): def __init__(self, targetfig, parent): - super().__init__() + super().__init__(parent) self.setWindowIcon(QtGui.QIcon( str(cbook._get_data_path("images/matplotlib.png")))) self.setObjectName("SubplotTool")