code: def get_parameter(self):
          
          self._parameter.value = self._input.value()
          return self._parameter
docs: Obtain the parameter object from the current widget state.
  
          :returns: A BooleanParameter from the current state of widget