(self)
| 166 | self.canvas.flush_events() |
| 167 | |
| 168 | def destroy(self): |
| 169 | # We need to clear any pending timers that never fired, otherwise |
| 170 | # we get a memory leak from the timer callbacks holding a reference |
| 171 | while self.canvas._timers: |
| 172 | timer = self.canvas._timers.pop() |
| 173 | timer.stop() |
| 174 | super().destroy() |
| 175 | |
| 176 | @classmethod |
| 177 | def start_main_loop(cls): |
no test coverage detected