MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / enterEvent

Method enterEvent

lib/matplotlib/backends/backend_qt.py:308–317  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 4

mouseEventCoordsMethod · 0.95
_mpl_modifiersMethod · 0.95
LocationEventClass · 0.90
_processMethod · 0.80

Tested by

no test coverage detected