code: def set(self, value):
          
          value = min(self.max, max(self.min, value))
          self._value = value
          start_new_thread(self.func, (self.get(),))
docs: Set the value of the bar. If the value is out of bound, sets it to an extremum