1
0
forked from M-Labs/artiq

gui: fix NumberEntry min/max

This commit is contained in:
Sebastien Bourdeauducq 2015-07-29 23:28:34 +08:00
parent 1d34c06d79
commit a8c13cb7de

View File

@ -69,7 +69,7 @@ class _NumberEntry(QtGui.QDoubleSpinBox):
if procdesc["min"] is not None: if procdesc["min"] is not None:
self.setMinimum(procdesc["min"]) self.setMinimum(procdesc["min"])
if procdesc["max"] is not None: if procdesc["max"] is not None:
self.setMinimum(procdesc["max"]) self.setMaximum(procdesc["max"])
if procdesc["unit"]: if procdesc["unit"]:
self.setSuffix(" " + procdesc["unit"]) self.setSuffix(" " + procdesc["unit"])
if "default" in procdesc: if "default" in procdesc: