mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-27 04:08:27 +08:00
gui.entries: fix RangeScan SpinBox size layouts
This commit is contained in:
parent
e45dc948e9
commit
f01e654b9c
@ -222,9 +222,6 @@ class _RangeScan(LayoutWidget):
|
|||||||
|
|
||||||
start = ScientificSpinBox()
|
start = ScientificSpinBox()
|
||||||
start.setStyleSheet("QDoubleSpinBox {color:blue}")
|
start.setStyleSheet("QDoubleSpinBox {color:blue}")
|
||||||
start.setMinimumSize(110, 0)
|
|
||||||
start.setSizePolicy(QtWidgets.QSizePolicy(
|
|
||||||
QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed))
|
|
||||||
disable_scroll_wheel(start)
|
disable_scroll_wheel(start)
|
||||||
self.addWidget(start, 0, 1)
|
self.addWidget(start, 0, 1)
|
||||||
|
|
||||||
@ -236,13 +233,15 @@ class _RangeScan(LayoutWidget):
|
|||||||
|
|
||||||
stop = ScientificSpinBox()
|
stop = ScientificSpinBox()
|
||||||
stop.setStyleSheet("QDoubleSpinBox {color:red}")
|
stop.setStyleSheet("QDoubleSpinBox {color:red}")
|
||||||
stop.setMinimumSize(110, 0)
|
|
||||||
disable_scroll_wheel(stop)
|
disable_scroll_wheel(stop)
|
||||||
self.addWidget(stop, 2, 1)
|
self.addWidget(stop, 2, 1)
|
||||||
|
|
||||||
randomize = QtWidgets.QCheckBox("Randomize")
|
randomize = QtWidgets.QCheckBox("Randomize")
|
||||||
self.addWidget(randomize, 3, 1)
|
self.addWidget(randomize, 3, 1)
|
||||||
|
|
||||||
|
self.layout.setColumnStretch(0, 4)
|
||||||
|
self.layout.setColumnStretch(1, 1)
|
||||||
|
|
||||||
apply_properties(start)
|
apply_properties(start)
|
||||||
start.setSigFigs()
|
start.setSigFigs()
|
||||||
start.setRelativeStep()
|
start.setRelativeStep()
|
||||||
|
Loading…
Reference in New Issue
Block a user