Fix all instances of this variable to a value if provided or to
        their current value otherwise.

        Args:
            value: value to be set.
353650
def fix(self, value=None):
        

        if value is None:
            self._impl.fix()
        else:
            self._impl.fix(value)
889819
def set_current_value(self, value):
        '''
        
        '''
        self._current_value = value
        self._current_rendered = self._encode_value(self._current_value)
        return self._current_rendered
745216
def setValue(self, value):
        
        self.__value = projex.text.decoded(value) if isinstance(value, (str, unicode)) else value
307232
def value(self, value):
        
        # For custom value
        if value not in self.options:
            if len(self.labels) == len(self.options):
                self.options[-1] = value
            else:
                self.options.append(value)

        self._value = value
310703
def set_value(self, value: datetime):
        
        assert isinstance(value, datetime)

        self.value = value
1038686
def code(self, value):
        
        if value not in list(defines.Codes.LIST.keys()) and value is not None:
            raise AttributeError
        self._code = value
792002
def target(self, value):
        
        if value == self._defaults['target'] and 'target' in self._values:
            del self._values['target']
        else:
            self._values['target'] = value
717926
def make_value(self, value):
        
        # ensure any escape sequences are converted to unicode
        value = self.unicode_escape_sequence_fix(value)

        if value and value[0] in ['"', "'"]:
            return self.remove_quotes(value)

        try:
            return int(value)
        except ValueError:
            pass
        try:
            return float(value)
        except ValueError:
            pass
        if value.lower() == "true":
            return True
        if value.lower() == "false":
            return False
        if value.lower() == "none":
            return None
        return value
764973
def update_internal(self, value):
        
        self.block()
        self.set_widget_value(value)
        self.unblock()
1094272
def set_value(self, value):
        
        self._value = value
        setattr(self.target, self._name, value)
148570
def conf(self, value):
        

        self._conf = self._toconf(value)

        if self.autoconf:
            self.applyconfiguration()
287008
def _fix_value(self, value):
        
        try:
            return self._castfunc(value)
        except:
            error = "Can't put '{0}' ({1}) into a {2}. Expected a {3} object."
            error = error.format(
                value,                  # Input value
                type(value),            # Type of input value
                type(self),             # Type of collection
                self._type              # Expected type of input value
            )
            six.reraise(TypeError, TypeError(error), sys.exc_info()[-1])
7489
private void updateValue(Value value) {
    while (true) {
      Value current = currentValue.get();
      if (value.isNewerThan(current)) {
        if (currentValue.compareAndSet(current, value)) {
          if (current == null || !Objects.equals(current.value(), value.value())) {
            eventListeners.forEach(listener -> listener.event(new ValueDelegateEvent<>(ValueDelegateEvent.Type.UPDATE, decode(value.value()))));
          }
          break;
        }
      } else {
        break;
      }
    }
  }
997305
def check_and_reset(self, value=None):
    

    if self.check():
      self.reset(value)
      return True
    return False
983444
def set(self, value):
        
        old_value = self._value
        old_raw_str_value = self.raw_str_value

        self.type.set_item_value(self, value)

        new_value = self._value

        if old_value is not_set and new_value is not_set:
            # Nothing to report
            return

        if self.section:
            self.section.dispatch_event(
                self.section.hooks.item_value_changed,
                item=self,
                old_value=old_value,
                new_value=new_value,
                old_raw_str_value=old_raw_str_value,
                new_raw_str_value=self.raw_str_value
            )
1316212
def source(self, value):
        
        if value == self._defaults['source'] and 'source' in self._values:
            del self._values['source']
        else:
            self._values['source'] = value
694927
def set(self, instance, value, **kw):
        
        return self._set(instance, value, **kw)