forked from M-Labs/artiq
1
0
Fork 0

gui: fix NumberEntry min/max

This commit is contained in:
Sebastien Bourdeauducq 2015-07-29 23:28:34 +08:00
parent 1d34c06d79
commit a8c13cb7de
1 changed files with 1 additions and 1 deletions

View File

@ -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: