@@ -29,8 +29,9 @@ def fn_name(): return sys._getframe(1).f_code.co_name
29
29
30
30
import matplotlib
31
31
from matplotlib ._pylab_helpers import Gcf
32
- from matplotlib .backend_bases import RendererBase , GraphicsContextBase , \
33
- FigureManagerBase , FigureCanvasBase , NavigationToolbar2 , cursors , TimerBase
32
+ from matplotlib .backend_bases import (
33
+ RendererBase , GraphicsContextBase , FigureManagerBase , FigureCanvasBase ,
34
+ NavigationToolbar2 , TimerBase , cursors )
34
35
from matplotlib .backend_bases import ShowBase
35
36
36
37
from matplotlib .backends .backend_gdk import RendererGDK , FigureCanvasGDK
@@ -441,6 +442,9 @@ def expose_event(self, widget, event):
441
442
"""
442
443
if _debug : print ('FigureCanvasGTK.%s' % fn_name ())
443
444
445
+ toolbar = self .toolbar
446
+ if toolbar :
447
+ toolbar .set_cursor (cursors .WAIT )
444
448
if GTK_WIDGET_DRAWABLE (self ):
445
449
if self ._need_redraw :
446
450
x , y , w , h = self .allocation
@@ -451,6 +455,8 @@ def expose_event(self, widget, event):
451
455
x , y , w , h = event .area
452
456
self .window .draw_drawable (self .style .fg_gc [self .state ],
453
457
self ._pixmap , x , y , x , y , w , h )
458
+ if toolbar :
459
+ toolbar .set_cursor (cursors .POINTER )
454
460
return False # finish event propagation?
455
461
456
462
filetypes = FigureCanvasBase .filetypes .copy ()
0 commit comments