parameters: (self, event)
docstring: Handles the ``wx.EVT_LEFT_DOWN`` event for the button.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_LEFT_DOWN`` event for the button.
docstring_tokens: Handles the wx . EVT_LEFT_DOWN event for the button .
function: def OnLeftDown(self, event):
          """
          Handles the ``wx.EVT_LEFT_DOWN`` event for the button.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
          """
  
          if not self.IsEnabled():
              return
  
          x, y = (event.GetX(), event.GetY())
  
          if self.IsOutside(x,y):
              return
  
          self._saveup = self._isup
          self._isup = not self._isup
  
          if not self.HasCapture():
              self.CaptureMouse()
  
          self.SetFocus()
          self.Refresh()
function_tokens: def OnLeftDown ( self , event ) : if not self . IsEnabled ( ) : return x , y = ( event . GetX ( ) , event . GetY ( ) ) if self . IsOutside ( x , y ) : return self . _saveup = self . _isup self . _isup = not self . _isup if not self . HasCapture ( ) : self . CaptureMouse ( ) self . SetFocus ( ) self . Refresh ( )