mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
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):
|
||||
QtWidgets.QWidget.__init__(self)
|
||||
slider = ScanSlider()
|
||||
axis = ScanAxis(zoomFactor)
|
||||
self.slider = slider = ScanSlider()
|
||||
self.axis = axis = ScanAxis(zoomFactor)
|
||||
zoomFitButton = QtWidgets.QPushButton("View Range")
|
||||
fitViewButton = QtWidgets.QPushButton("Snap Range")
|
||||
self.proxy = ScanProxy(slider, axis, rangeFactor)
|
||||
|
Loading…
Reference in New Issue
Block a user