parameters: (self, event)
docstring: Handles the ``wx.EVT_MOUSE_EVENTS`` event for :class:`KnobCtrl`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_MOUSE_EVENTS`` event for :class:`KnobCtrl`.
docstring_tokens: Handles the wx . EVT_MOUSE_EVENTS event for : class : KnobCtrl .
function: def OnMouseEvents(self, event):
          """
          Handles the ``wx.EVT_MOUSE_EVENTS`` event for :class:`KnobCtrl`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
          """
  
          if self._state == 0 and event.Entering():
              self._state = 1 
          elif self._state >= 1 and event.Leaving():
              self._state = 0 
          elif self._state == 1 and event.LeftDown():
              self._state = 2 
              self._mousePosition = event.GetPosition()
              self.SetTrackPosition() 
          elif self._state == 2 and event.LeftIsDown():
              self._mousePosition = event.GetPosition()
              self.SetTrackPosition() 
          elif self._state == 2 and event.LeftUp():
              self._state = 1
function_tokens: def OnMouseEvents ( self , event ) : if self . _state == 0 and event . Entering ( ) : self . _state = 1 elif self . _state >= 1 and event . Leaving ( ) : self . _state = 0 elif self . _state == 1 and event . LeftDown ( ) : self . _state = 2 self . _mousePosition = event . GetPosition ( ) self . SetTrackPosition ( ) elif self . _state == 2 and event . LeftIsDown ( ) : self . _mousePosition = event . GetPosition ( ) self . SetTrackPosition ( ) elif self . _state == 2 and event . LeftUp ( ) : self . _state = 1