Thanks to visit codestin.com Credit goes to github.com
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 100c7cf commit 56504faCopy full SHA for 56504fa
1 file changed
lib/matplotlib/backends/_backend_tk.py
@@ -620,6 +620,16 @@ def save_figure(self, *args):
620
except Exception as e:
621
tkinter.messagebox.showerror("Error saving file", str(e))
622
623
+ def set_history_buttons(self):
624
+ if self._nav_stack._pos > 0:
625
+ self._buttons['Back']['state'] = tk.NORMAL
626
+ else:
627
+ self._buttons['Back']['state'] = tk.DISABLED
628
+ if self._nav_stack._pos < len(self._nav_stack._elements) - 1:
629
+ self._buttons['Forward']['state'] = tk.NORMAL
630
631
+ self._buttons['Forward']['state'] = tk.DISABLED
632
+
633
634
class ToolTip:
635
"""
0 commit comments