From f01e654b9c2e5408ea4bf077a78374a2d099b8e2 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 15 Sep 2023 11:24:53 +0800 Subject: [PATCH] gui.entries: fix RangeScan SpinBox size layouts --- artiq/gui/entries.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/artiq/gui/entries.py b/artiq/gui/entries.py index b86bc5c57..8b9bf4788 100644 --- a/artiq/gui/entries.py +++ b/artiq/gui/entries.py @@ -222,9 +222,6 @@ class _RangeScan(LayoutWidget): start = ScientificSpinBox() start.setStyleSheet("QDoubleSpinBox {color:blue}") - start.setMinimumSize(110, 0) - start.setSizePolicy(QtWidgets.QSizePolicy( - QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)) disable_scroll_wheel(start) self.addWidget(start, 0, 1) @@ -236,13 +233,15 @@ class _RangeScan(LayoutWidget): stop = ScientificSpinBox() stop.setStyleSheet("QDoubleSpinBox {color:red}") - stop.setMinimumSize(110, 0) disable_scroll_wheel(stop) self.addWidget(stop, 2, 1) randomize = QtWidgets.QCheckBox("Randomize") self.addWidget(randomize, 3, 1) + self.layout.setColumnStretch(0, 4) + self.layout.setColumnStretch(1, 1) + apply_properties(start) start.setSigFigs() start.setRelativeStep()