parameters: (self, amount=1)
return_statement: return
docstring: limit maximum value to value + extend <= maximum
docstring_summary: limit maximum value to value + extend <= maximum
docstring_tokens: limit maximum value to value + extend < = maximum
function: def _inc(self, amount=1):
  		"""limit maximum value to value + extend <= maximum
  		"""
  		value = self.model.getValue()
  		value += amount
  		if ((value + self.model.getExtend()) <= self.model.getMaximum()):
  			self.model.setValue(value)
  		else:
  			# set to maximum value
  			self.model.setValue(self.model.getMaximum() - self.model.getExtend())
  		return
function_tokens: def _inc ( self , amount = 1 ) : value = self . model . getValue ( ) value += amount if ( ( value + self . model . getExtend ( ) ) <= self . model . getMaximum ( ) ) : self . model . setValue ( value ) else : # set to maximum value self . model . setValue ( self . model . getMaximum ( ) - self . model . getExtend ( ) ) return