File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,12 @@ def stop_event_loop(self):
387387 self ._event_loop_id = None
388388 self ._tkcanvas .quit ()
389389
390+ def set_cursor (self , cursor ):
391+ try :
392+ self ._tkcanvas .configure (cursor = cursord [cursor ])
393+ except tkinter .TclError :
394+ pass
395+
390396
391397class FigureManagerTk (FigureManagerBase ):
392398 """
@@ -629,13 +635,6 @@ def remove_rubberband(self):
629635 lastrect = _api .deprecated ("3.6" )(
630636 property (lambda self : self .canvas ._rubberband_rect ))
631637
632- def set_cursor (self , cursor ):
633- window = self .canvas .get_tk_widget ().master
634- try :
635- window .configure (cursor = cursord [cursor ])
636- except tkinter .TclError :
637- pass
638-
639638 def _set_image_for_button (self , button ):
640639 """
641640 Set the image for a button based on its pixel size.
You can’t perform that action at this time.
0 commit comments