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 2698288 commit a915458Copy full SHA for a915458
lib/matplotlib/backends/backend_qt5.py
@@ -856,6 +856,12 @@ def save_figure(self, *args):
856
self, "Error saving file", str(e),
857
QtWidgets.QMessageBox.Ok, QtWidgets.QMessageBox.NoButton)
858
859
+ def set_history_buttons(self):
860
+ can_backward = self._nav_stack._pos > 0
861
+ can_forward = self._nav_stack._pos < len(self._nav_stack._elements) - 1
862
+ self._actions['back'].setEnabled(can_backward)
863
+ self._actions['forward'].setEnabled(can_forward)
864
+
865
866
class SubplotToolQt(UiSubplotTool):
867
def __init__(self, targetfig, parent):
0 commit comments