(self)
| 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""" |
no test coverage detected