parameters: (self, event)
docstring: Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`AuiToolBar`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`AuiToolBar`.
docstring_tokens: Handles the wx . EVT_MIDDLE_DOWN event for : class : AuiToolBar .
function: def OnMiddleDown(self, event):
          """
          Handles the ``wx.EVT_MIDDLE_DOWN`` event for :class:`AuiToolBar`.
  
          :param `event`: a :class:`MouseEvent` event to be processed.        
          """
          
          cli_rect = wx.RectPS(wx.Point(0, 0), self.GetClientSize())
  
          if self._gripper_sizer_item:
          
              gripper_rect = self._gripper_sizer_item.GetRect()
              if gripper_rect.Contains(event.GetPosition()):
                  return
          
          if self._overflow_sizer_item:
          
              dropdown_size = self._art.GetElementSize(AUI_TBART_OVERFLOW_SIZE)
              if dropdown_size > 0 and event.GetX() > cli_rect.width - dropdown_size and \
                 event.GetY() >= 0 and event.GetY() < cli_rect.height and self._art:            
                  return
              
          self._action_pos = wx.Point(*event.GetPosition())
          self._action_item = self.FindToolForPosition(*event.GetPosition())
  
          if self._action_item:
              if self._action_item.state & AUI_BUTTON_STATE_DISABLED:
              
                  self._action_pos = wx.Point(-1, -1)
                  self._action_item = None
                  return
function_tokens: def OnMiddleDown ( self , event ) : cli_rect = wx . RectPS ( wx . Point ( 0 , 0 ) , self . GetClientSize ( ) ) if self . _gripper_sizer_item : gripper_rect = self . _gripper_sizer_item . GetRect ( ) if gripper_rect . Contains ( event . GetPosition ( ) ) : return if self . _overflow_sizer_item : dropdown_size = self . _art . GetElementSize ( AUI_TBART_OVERFLOW_SIZE ) if dropdown_size > 0 and event . GetX ( ) > cli_rect . width - dropdown_size and event . GetY ( ) >= 0 and event . GetY ( ) < cli_rect . height and self . _art : return self . _action_pos = wx . Point ( * event . GetPosition ( ) ) self . _action_item = self . FindToolForPosition ( * event . GetPosition ( ) ) if self . _action_item : if self . _action_item . state & AUI_BUTTON_STATE_DISABLED : self . _action_pos = wx . Point ( - 1 , - 1 ) self . _action_item = None return