Skip to content

Commit

Permalink
gui/scan: adapt layout to show more decimals
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 20, 2015
1 parent 108aed5 commit 9826b19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions artiq/gui/scan.py
Original file line number Diff line number Diff line change
@@ -27,16 +27,16 @@ def apply_properties(spinbox):
apply_properties(self.min)
self.addWidget(self.min, 0, 1)

self.addWidget(QtGui.QLabel("Max:"), 0, 2)
self.addWidget(QtGui.QLabel("Max:"), 1, 0)
self.max = QtGui.QDoubleSpinBox()
apply_properties(self.max)
self.addWidget(self.max, 0, 3)
self.addWidget(self.max, 1, 1)

self.addWidget(QtGui.QLabel("#Points:"), 0, 4)
self.addWidget(QtGui.QLabel("#Points:"), 2, 0)
self.npoints = QtGui.QSpinBox()
self.npoints.setMinimum(2)
self.npoints.setValue(10)
self.addWidget(self.npoints, 0, 5)
self.addWidget(self.npoints, 2, 1)

def set_values(self, min, max, npoints):
self.min.setValue(min/self.scale)

0 comments on commit 9826b19

Please sign in to comment.