parameters: (self, event)
docstring: Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`PageContainer`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`PageContainer`.
docstring_tokens: Handles the wx . EVT_MIDDLE_DOWN event for : class : PageContainer .
function: def OnMiddleDown(self, event):
          """
          Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`PageContainer`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
          """
  
          # Test if this style is enabled
          agwStyle = self.GetParent().GetAGWWindowStyleFlag()
  
          if not agwStyle & FNB_MOUSE_MIDDLE_CLOSES_TABS:
              return
  
          where, tabIdx = self.HitTest(event.GetPosition())
  
          if where == FNB_TAB:
              self.DeletePage(tabIdx)
  
          event.Skip()
function_tokens: def OnMiddleDown ( self , event ) : # Test if this style is enabled agwStyle = self . GetParent ( ) . GetAGWWindowStyleFlag ( ) if not agwStyle & FNB_MOUSE_MIDDLE_CLOSES_TABS : return where , tabIdx = self . HitTest ( event . GetPosition ( ) ) if where == FNB_TAB : self . DeletePage ( tabIdx ) event . Skip ( )