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):
387
387
self ._event_loop_id = None
388
388
self ._tkcanvas .quit ()
389
389
390
+ def set_cursor (self , cursor ):
391
+ try :
392
+ self ._tkcanvas .configure (cursor = cursord [cursor ])
393
+ except tkinter .TclError :
394
+ pass
395
+
390
396
391
397
class FigureManagerTk (FigureManagerBase ):
392
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 :
635
- window .configure (cursor = cursord [cursor ])
636
- except tkinter .TclError :
637
- pass
638
-
639
638
def _set_image_for_button (self , button ):
640
639
"""
641
640
Set the image for a button based on its pixel size.
You can’t perform that action at this time.
0 commit comments