forked from M-Labs/artiq
gui: fix NumberEntry min/max
This commit is contained in:
parent
1d34c06d79
commit
a8c13cb7de
@ -69,7 +69,7 @@ class _NumberEntry(QtGui.QDoubleSpinBox):
|
||||
if procdesc["min"] is not None:
|
||||
self.setMinimum(procdesc["min"])
|
||||
if procdesc["max"] is not None:
|
||||
self.setMinimum(procdesc["max"])
|
||||
self.setMaximum(procdesc["max"])
|
||||
if procdesc["unit"]:
|
||||
self.setSuffix(" " + procdesc["unit"])
|
||||
if "default" in procdesc:
|
||||
|
Loading…
Reference in New Issue
Block a user