We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 528745f + c540af5 commit a0af7ccCopy full SHA for a0af7cc
lib/matplotlib/backends/_backend_tk.py
@@ -387,6 +387,12 @@ def stop_event_loop(self):
387
self._event_loop_id = None
388
self._tkcanvas.quit()
389
390
+ def set_cursor(self, cursor):
391
+ try:
392
+ self._tkcanvas.configure(cursor=cursord[cursor])
393
+ except tkinter.TclError:
394
+ pass
395
+
396
397
class FigureManagerTk(FigureManagerBase):
398
"""
@@ -629,13 +635,6 @@ def remove_rubberband(self):
629
635
lastrect = _api.deprecated("3.6")(
630
636
property(lambda self: self.canvas._rubberband_rect))
631
637
632
- def set_cursor(self, cursor):
633
- window = self.canvas.get_tk_widget().master
634
- try:
- window.configure(cursor=cursord[cursor])
- except tkinter.TclError:
- pass
638
-
639
def _set_image_for_button(self, button):
640
641
Set the image for a button based on its pixel size.
0 commit comments