MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / draw_idle

Method draw_idle

lib/matplotlib/backends/backend_macosx.py:59–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.update()
58
59 def draw_idle(self):
60 # docstring inherited
61 if not (getattr(self, '_draw_pending', False) or
62 getattr(self, '_is_drawing', False)):
63 self._draw_pending = True
64 # Add a singleshot timer to the eventloop that will call back
65 # into the Python method _draw_idle to take care of the draw
66 self._single_shot_timer(self._draw_idle)
67
68 def _single_shot_timer(self, callback):
69 """Add a single shot timer with the given callback"""

Callers 3

resizeMethod · 0.95
__init__Method · 0.45
showMethod · 0.45

Calls 1

_single_shot_timerMethod · 0.95

Tested by

no test coverage detected