8000 Merge pull request #22269 from meeseeksmachine/auto-backport-of-pr-22… · matplotlib/matplotlib@8f40942 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f40942

Browse files
authored
Merge pull request #22269 from meeseeksmachine/auto-backport-of-pr-22265-on-v3.5.x
Backport PR #22265 on branch v3.5.x (Fix Qt enum access.)
2 parents b376327 + 9516e84 commit 8f40942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,8 @@ def save_figure(self, *args):
794794
except Exception as e:
795795
QtWidgets.QMessageBox.critical(
796796
self, "Error saving file", str(e),
797-
QtWidgets.QMessageBox.Ok, QtWidgets.QMessageBox.NoButton)
797+
_enum("QtWidgets.QMessageBox.StandardButton").Ok,
798+
_enum("QtWidgets.QMessageBox.StandardButton").NoButton)
798799

799800
def set_history_buttons(self):
800801
can_backward = self._nav_stack._pos > 0

0 commit comments

Comments
 (0)
0