MCPcopy Create free account
hub / github.com/PyQt5/PyQt / mouseClickEvent

Method mouseClickEvent

PyQtGraph/testGraphAnalysis.py:27–29  ·  view source on GitHub ↗
(self, ev)

Source from the content-addressed store, hash-verified

25 self.setMouseMode(self.RectMode)
26
27 def mouseClickEvent(self, ev):
28 if ev.button() == pg.QtCore.Qt.RightButton:
29 self.autoRange()
30
31 def mouseDragEvent(self, ev):
32 pg.ViewBox.mouseDragEvent(self, ev)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected