(self)
| 513 | self.repaint(l, self.rect().height() - t, w, h) |
| 514 | |
| 515 | def _draw_idle(self): |
| 516 | with self._idle_draw_cntx(): |
| 517 | if not self._draw_pending: |
| 518 | return |
| 519 | self._draw_pending = False |
| 520 | if _isdeleted(self) or self.height() <= 0 or self.width() <= 0: |
| 521 | return |
| 522 | try: |
| 523 | self.draw() |
| 524 | except Exception: |
| 525 | # Uncaught exceptions are fatal for PyQt5, so catch them. |
| 526 | traceback.print_exc() |
| 527 | |
| 528 | def drawRectangle(self, rect): |
| 529 | # Draw the zoom rectangle to the QPainter. _draw_rect_callback needs |
no test coverage detected