parameters: (self, event)
docstring: Handles the ``wx.EVT_LEFT_UP`` event for :class:`ButtonPanel`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_LEFT_UP`` event for :class:`ButtonPanel`.
docstring_tokens: Handles the wx . EVT_LEFT_UP event for : class : ButtonPanel .
function: def OnLeftUp(self, event):
          """
          Handles the ``wx.EVT_LEFT_UP`` event for :class:`ButtonPanel`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.        
          """
          
          tabId, flags = self.HitTest(event.GetPosition())
          
          if flags != BP_HT_BUTTON:
              return
              
          hit = self._vButtons[tabId]
  
          if hit.GetStatus() == "Disabled":
              return
  
          for btn in self._vButtons:
              if btn != hit:
                  btn.SetFocus(False)
                  
          if hit.GetStatus() == "Pressed": 
              hit.SetToggled(not hit.GetToggled())
              
              # Update the button status to be hovered 
              hit.SetStatus("Hover")
              hit.SetFocus()
              self._currentButton = tabId
  
              # Fire a button click event 
              btnEvent = wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, hit.GetId())
              btnEvent.SetEventObject(hit)
              self.GetEventHandler().ProcessEvent(btnEvent)
function_tokens: def OnLeftUp ( self , event ) : tabId , flags = self . HitTest ( event . GetPosition ( ) ) if flags != BP_HT_BUTTON : return hit = self . _vButtons [ tabId ] if hit . GetStatus ( ) == "Disabled" : return for btn in self . _vButtons : if btn != hit : btn . SetFocus ( False ) if hit . GetStatus ( ) == "Pressed" : hit . SetToggled ( not hit . GetToggled ( ) ) # Update the button status to be hovered  hit . SetStatus ( "Hover" ) hit . SetFocus ( ) self . _currentButton = tabId # Fire a button click event  btnEvent = wx . CommandEvent ( wx . wxEVT_COMMAND_BUTTON_CLICKED , hit . GetId ( ) ) btnEvent . SetEventObject ( hit ) self . GetEventHandler ( ) . ProcessEvent ( btnEvent )