8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3479f5b + 04a2d11 commit 50407d0Copy full SHA for 50407d0
lib/matplotlib/backends/backend_qt5.py
@@ -506,7 +506,8 @@ def draw_idle(self):
506
# current event loop in order to ensure thread affinity and to
507
# accumulate multiple draw requests from event handling.
508
# TODO: queued signal connection might be safer than singleShot
509
- if not (self._draw_pending or self._is_drawing):
+ if not (getattr(self, '_draw_pending', False) or
510
+ getattr(self, '._is_drawing', False)):
511
self._draw_pending = True
512
QtCore.QTimer.singleShot(0, self._draw_idle)
513
0 commit comments