mirror of https://github.com/m-labs/artiq.git
scanwidget: disable unmodified wheel on axis and slider
This commit is contained in:
parent
285979cab6
commit
59ac567048
|
@ -559,8 +559,8 @@ class ScanWidget(QtWidgets.QWidget):
|
||||||
|
|
||||||
def __init__(self, zoomFactor=1.05, rangeFactor=6):
|
def __init__(self, zoomFactor=1.05, rangeFactor=6):
|
||||||
QtWidgets.QWidget.__init__(self)
|
QtWidgets.QWidget.__init__(self)
|
||||||
slider = ScanSlider()
|
self.slider = slider = ScanSlider()
|
||||||
axis = ScanAxis(zoomFactor)
|
self.axis = axis = ScanAxis(zoomFactor)
|
||||||
zoomFitButton = QtWidgets.QPushButton("View Range")
|
zoomFitButton = QtWidgets.QPushButton("View Range")
|
||||||
fitViewButton = QtWidgets.QPushButton("Snap Range")
|
fitViewButton = QtWidgets.QPushButton("Snap Range")
|
||||||
self.proxy = ScanProxy(slider, axis, rangeFactor)
|
self.proxy = ScanProxy(slider, axis, rangeFactor)
|
||||||
|
|
Loading…
Reference in New Issue