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

Method mouseClickEvent

PyQtGraph/graph1.py:26–28  ·  view source on GitHub ↗
(self, ev)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected