mirror of https://github.com/m-labs/artiq.git
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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue