(self, event)
| 306 | return x * self.device_pixel_ratio, y * self.device_pixel_ratio |
| 307 | |
| 308 | def enterEvent(self, event): |
| 309 | # Force querying of the modifiers, as the cached modifier state can |
| 310 | # have been invalidated while the window was out of focus. |
| 311 | mods = QtWidgets.QApplication.instance().queryKeyboardModifiers() |
| 312 | if self.figure is None: |
| 313 | return |
| 314 | LocationEvent("figure_enter_event", self, |
| 315 | *self.mouseEventCoords(event), |
| 316 | modifiers=self._mpl_modifiers(mods), |
| 317 | guiEvent=event)._process() |
| 318 | |
| 319 | def leaveEvent(self, event): |
| 320 | QtWidgets.QApplication.restoreOverrideCursor() |
nothing calls this directly
no test coverage detected