Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 937889f

Browse files
authored
Merge pull request #10254 from anntzer/revert-cursor
Quick and dirty revert of busy cursor for 2.1.2.
2 parents b67098b + cf34798 commit 937889f

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

lib/matplotlib/backends/backend_agg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,12 @@ def draw(self):
427427

428428
toolbar = self.toolbar
429429
try:
430-
if toolbar:
431-
toolbar.set_cursor(cursors.WAIT)
430+
# if toolbar:
431+
# toolbar.set_cursor(cursors.WAIT)
432432
self.figure.draw(self.renderer)
433433
finally:
434-
if toolbar:
435-
toolbar.set_cursor(toolbar._lastCursor)
434+
# if toolbar:
435+
# toolbar.set_cursor(toolbar._lastCursor)
436436
RendererAgg.lock.release()
437437

438438
def get_renderer(self, cleared=False):

lib/matplotlib/backends/backend_gtk.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def expose_event(self, widget, event):
393393
"""Expose_event for all GTK backends. Should not be overridden.
394394
"""
395395
toolbar = self.toolbar
396-
if toolbar:
397-
toolbar.set_cursor(cursors.WAIT)
396+
# if toolbar:
397+
# toolbar.set_cursor(cursors.WAIT)
398398
if GTK_WIDGET_DRAWABLE(self):
399399
if self._need_redraw:
400400
x, y, w, h = self.allocation
@@ -404,8 +404,8 @@ def expose_event(self, widget, event):
404404
x, y, w, h = event.area
405405
self.window.draw_drawable (self.style.fg_gc[self.state],
406406
self._pixmap, x, y, x, y, w, h)
407-
if toolbar:
408-
toolbar.set_cursor(toolbar._lastCursor)
407+
# if toolbar:
408+
# toolbar.set_cursor(toolbar._lastCursor)
409409
return False # finish event propagation?
410410

411411
filetypes = FigureCanvasBase.filetypes.copy()
@@ -486,7 +486,6 @@ def flush_events(self):
486486
gtk.gdk.threads_leave()
487487

488488

489-
490489
class FigureManagerGTK(FigureManagerBase):
491490
"""
492491
Attributes

lib/matplotlib/backends/backend_gtk3cairo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def _render_figure(self, width, height):
3535
def on_draw_event(self, widget, ctx):
3636
"""GtkDrawable draw event."""
3737
toolbar = self.toolbar
38-
if toolbar:
39-
toolbar.set_cursor(cursors.WAIT)
38+
# if toolbar:
39+
# toolbar.set_cursor(cursors.WAIT)
4040
self._renderer.set_context(ctx)
4141
allocation = self.get_allocation()
4242
self._render_figure(allocation.width, allocation.height)
43-
if toolbar:
44-
toolbar.set_cursor(toolbar._lastCursor)
43+
# if toolbar:
44+
# toolbar.set_cursor(toolbar._lastCursor)
4545
return False # finish event propagation?
4646

4747

0 commit comments

Comments
 (0)