Merge remote-tracking branch 'lidstrom83/Parameter_limits_fix' into spinbox-formatting

This commit is contained in:
Luke Campagnola 2016-12-09 09:54:39 -08:00
commit 4aad24a52d

View File

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