diff --git a/artiq/gui/entries.py b/artiq/gui/entries.py index 34468930e..b86bc5c57 100644 --- a/artiq/gui/entries.py +++ b/artiq/gui/entries.py @@ -121,7 +121,7 @@ class NumberEntryFloat(ScientificSpinBox): procdesc = argument["desc"] scale = procdesc["scale"] self.setDecimals(procdesc["precision"]) - self.setPrecision() + self.setSigFigs() self.setSingleStep(procdesc["step"]/scale) self.setRelativeStep() if procdesc["min"] is not None: @@ -160,7 +160,7 @@ class _NoScan(LayoutWidget): self.value = ScientificSpinBox() disable_scroll_wheel(self.value) self.value.setDecimals(procdesc["precision"]) - self.value.setPrecision() + self.value.setSigFigs() if procdesc["global_min"] is not None: self.value.setMinimum(procdesc["global_min"]/scale) else: @@ -244,10 +244,10 @@ class _RangeScan(LayoutWidget): self.addWidget(randomize, 3, 1) apply_properties(start) - start.setPrecision() + start.setSigFigs() start.setRelativeStep() apply_properties(stop) - stop.setPrecision() + stop.setSigFigs() stop.setRelativeStep() apply_properties(scanner) @@ -310,7 +310,7 @@ class _CenterScan(LayoutWidget): center = ScientificSpinBox() disable_scroll_wheel(center) apply_properties(center) - center.setPrecision() + center.setSigFigs() center.setRelativeStep() center.setValue(state["center"]/scale) self.addWidget(center, 0, 1) @@ -319,7 +319,7 @@ class _CenterScan(LayoutWidget): span = ScientificSpinBox() disable_scroll_wheel(span) apply_properties(span) - span.setPrecision() + span.setSigFigs() span.setRelativeStep() span.setMinimum(0) span.setValue(state["span"]/scale) @@ -329,7 +329,7 @@ class _CenterScan(LayoutWidget): step = ScientificSpinBox() disable_scroll_wheel(step) apply_properties(step) - step.setPrecision() + step.setSigFigs() step.setRelativeStep() step.setMinimum(0) step.setValue(state["step"]/scale)