def changeVariables(self, source, variables):
        super(Slider, self).changeVariables(source, variables)

        if 'value' in variables:
            value = variables.get('value')
            newValue = float(str(value))
            if (newValue is not None and newValue != self.getValue()
                    and newValue != self.getValue()):
                # Convert to nearest bound
                try:
                    self.setValue(newValue, True)
                except ValueOutOfBoundsException, e:
                    out = float( e.getValue() )
                    if out < self._min:
                        out = self._min
                    if out > self._max:
                        out = self._max
                    super(Slider, self).setValue(float(out), False)
Creates a new CmdSet instance.
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/slider.py/Slider.changeVariables--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/commands/cmdset.py/CmdSet.__init__