MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

PyQtGraph/graph1.py:21–24  ·  view source on GitHub ↗
(self, *args, **kwds)

Source from the content-addressed store, hash-verified

19
20class CustomViewBox(pg.ViewBox):
21 def __init__(self, *args, **kwds):
22 pg.ViewBox.__init__(self, *args, **kwds)
23 self.RectMode = 3
24 self.setMouseMode(self.RectMode)
25
26 def mouseClickEvent(self, ev):
27 if ev.button() == pg.QtCore.Qt.RightButton:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected