parameters: (self, val)
docstring: Sets programmatically the value of :class:`KnobCtrl`.
  
          :param `val`: an integer specifying the new :class:`KnobCtrl` value.
  
          :note: This method does not send a :class:`KnobCtrlEvent`.
docstring_summary: Sets programmatically the value of :class:`KnobCtrl`.
docstring_tokens: Sets programmatically the value of : class : KnobCtrl .
function: def SetValue(self, val):
          """
          Sets programmatically the value of :class:`KnobCtrl`.
  
          :param `val`: an integer specifying the new :class:`KnobCtrl` value.
  
          :note: This method does not send a :class:`KnobCtrlEvent`.        
          """
  
          if val < self._minvalue or val > self._maxvalue:
              return
  
          width, height = self.GetSize()
          
          deltarange = self._maxvalue - self._minvalue
          deltaangle = self._angleend - self._anglestart
  
          coeff = float(deltaangle)/float(deltarange)
  
          ang = 360.0 + val*coeff + self._anglestart
          
          ang = ang*math.pi/180.0
          self._old_ang = ang
  
          self._trackposition = int(round(val))
          self.UpdateDrawing()
function_tokens: def SetValue ( self , val ) : if val < self . _minvalue or val > self . _maxvalue : return width , height = self . GetSize ( ) deltarange = self . _maxvalue - self . _minvalue deltaangle = self . _angleend - self . _anglestart coeff = float ( deltaangle ) / float ( deltarange ) ang = 360.0 + val * coeff + self . _anglestart ang = ang * math . pi / 180.0 self . _old_ang = ang self . _trackposition = int ( round ( val ) ) self . UpdateDrawing ( )