diff --git a/pyqtgraph/parametertree/parameterTypes.py b/pyqtgraph/parametertree/parameterTypes.py index e8b55db7..e0df6be7 100644 --- a/pyqtgraph/parametertree/parameterTypes.py +++ b/pyqtgraph/parametertree/parameterTypes.py @@ -317,6 +317,11 @@ class SimpleParameter(Parameter): self.value = self.colorValue self.saveState = self.saveColorState + def setValue(self, value, blockSignal=None): + if self.opts['type'] == 'int': + value = int(value) + Parameter.setValue(self, value, blockSignal) + def colorValue(self): return fn.mkColor(Parameter.value(self))