mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
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