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

Method __init__

PyQtGraph/tools.py:76–79  ·  view source on GitHub ↗
(self, *args, **kwds)

Source from the content-addressed store, hash-verified

74# 禁止鼠标事件
75class CustomViewBox(pg.ViewBox):
76 def __init__(self, *args, **kwds):
77 pg.ViewBox.__init__(self, *args, **kwds)
78 self.RectMode = 3
79 self.setMouseMode(self.RectMode)
80
81 def mouseClickEvent(self, ev):
82 if ev.button() == pg.QtCore.Qt.RightButton:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected