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

Method mousePressEvent

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

Source from the content-addressed store, hash-verified

326 guiEvent=event)._process()
327
328 def mousePressEvent(self, event):
329 button = self.buttond.get(event.button())
330 if button is not None and self.figure is not None:
331 MouseEvent("button_press_event", self,
332 *self.mouseEventCoords(event), button,
333 modifiers=self._mpl_modifiers(),
334 guiEvent=event)._process()
335
336 def mouseDoubleClickEvent(self, event):
337 button = self.buttond.get(event.button())

Callers

nothing calls this directly

Calls 5

mouseEventCoordsMethod · 0.95
_mpl_modifiersMethod · 0.95
MouseEventClass · 0.90
_processMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected