mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-29 13:13:34 +08:00
entries: rename setPrecision to setSigFigs
This commit is contained in:
parent
a2d62e6006
commit
8f4c8387f9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user