parameters: (self, event)
docstring: Handles the ``wx.EVT_MIDDLE_UP`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_MIDDLE_UP`` event for :class:`AuiTabCtrl`.
docstring_tokens: Handles the wx . EVT_MIDDLE_UP event for : class : AuiTabCtrl .
function: def OnMiddleUp(self, event):
          """
          Handles the ``wx.EVT_MIDDLE_UP`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
          """
  
          eventHandler = self.GetEventHandler()
          if not isinstance(eventHandler, AuiTabCtrl):
              event.Skip()
              return
  
          x, y = event.GetX(), event.GetY()
          wnd = self.TabHitTest(x, y)
  
          if wnd:
              e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, self.GetId())
              e.SetEventObject(self)
              e.Page = wnd
              e.SetSelection(self.GetIdxFromWindow(wnd))
              self.GetEventHandler().ProcessEvent(e)
          elif not self.ButtonHitTest(x, y):
              e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_BG_MIDDLE_UP, self.GetId())
              e.SetEventObject(self)
              self.GetEventHandler().ProcessEvent(e)
function_tokens: def OnMiddleUp ( self , event ) : eventHandler = self . GetEventHandler ( ) if not isinstance ( eventHandler , AuiTabCtrl ) : event . Skip ( ) return x , y = event . GetX ( ) , event . GetY ( ) wnd = self . TabHitTest ( x , y ) if wnd : e = AuiNotebookEvent ( wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP , self . GetId ( ) ) e . SetEventObject ( self ) e . Page = wnd e . SetSelection ( self . GetIdxFromWindow ( wnd ) ) self . GetEventHandler ( ) . ProcessEvent ( e ) elif not self . ButtonHitTest ( x , y ) : e = AuiNotebookEvent ( wxEVT_COMMAND_AUINOTEBOOK_BG_MIDDLE_UP , self . GetId ( ) ) e . SetEventObject ( self ) self . GetEventHandler ( ) . ProcessEvent ( e )