Fix bug where int and float parameter limits are not always set.

This commit is contained in:
lidstrom83 2016-05-03 12:25:05 -06:00
parent 670d63cdf4
commit 5322c0233b

View File

@ -108,7 +108,7 @@ class WidgetParameterItem(ParameterItem):
if k in opts: if k in opts:
defs[k] = opts[k] defs[k] = opts[k]
if 'limits' in opts: if 'limits' in opts:
defs['bounds'] = opts['limits'] defs['min'], defs['max'] = opts['limits']
w = SpinBox() w = SpinBox()
w.setOpts(**defs) w.setOpts(**defs)
w.sigChanged = w.sigValueChanged w.sigChanged = w.sigValueChanged