We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62978a2 + 76cb7c9 commit c78cf12Copy full SHA for c78cf12
lib/matplotlib/backends/backend_qt.py
@@ -799,7 +799,8 @@ def save_figure(self, *args):
799
except Exception as e:
800
QtWidgets.QMessageBox.critical(
801
self, "Error saving file", str(e),
802
- QtWidgets.QMessageBox.Ok, QtWidgets.QMessageBox.NoButton)
+ _enum("QtWidgets.QMessageBox.StandardButton").Ok,
803
+ _enum("QtWidgets.QMessageBox.StandardButton").NoButton)
804
805
def set_history_buttons(self):
806
can_backward = self._nav_stack._pos > 0
0 commit comments