(self, width, height)
| 98 | self.update() |
| 99 | |
| 100 | def resize(self, width, height): |
| 101 | # Size from macOS is logical pixels, dpi is physical. |
| 102 | scale = self.figure.dpi / self.device_pixel_ratio |
| 103 | width /= scale |
| 104 | height /= scale |
| 105 | self.figure.set_size_inches(width, height, forward=False) |
| 106 | ResizeEvent("resize_event", self)._process() |
| 107 | self.draw_idle() |
| 108 | |
| 109 | def start_event_loop(self, timeout=0): |
| 110 | # docstring inherited |
nothing calls this directly
no test coverage detected