parameters: (self, event)
docstring: Handles the ``wx.EVT_MOUSE_CAPTURE_LOST`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`MouseCaptureLostEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_MOUSE_CAPTURE_LOST`` event for :class:`AuiTabCtrl`.
docstring_tokens: Handles the wx . EVT_MOUSE_CAPTURE_LOST event for : class : AuiTabCtrl .
function: def OnCaptureLost(self, event):
          """
          Handles the ``wx.EVT_MOUSE_CAPTURE_LOST`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`MouseCaptureLostEvent` event to be processed.
          """
  
          if self._click_tab:
              e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_TAB_LEFT_UP, self.GetId())
              e.SetEventObject(self)
              e.SetSelection(self.GetIdxFromWindow(self._click_tab))
              self.GetEventHandler().ProcessEvent(e)
  
          if self._is_dragging:
              self._is_dragging = False
              self._on_button = False
  
              if self._drag_image:
                  self._drag_image.EndDrag()
                  del self._drag_image
                  self._drag_image = None
  
              event = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_CANCEL_DRAG, self.GetId())
              event.SetSelection(self.GetIdxFromWindow(self._click_tab))
              event.SetOldSelection(event.GetSelection())
              event.SetEventObject(self)
              self.GetEventHandler().ProcessEvent(event)
  
          if self._hover_button:
              self._hover_button.cur_state = AUI_BUTTON_STATE_NORMAL
              self._hover_button = None
  
          self.Refresh()
          self.Update()
function_tokens: def OnCaptureLost ( self , event ) : if self . _click_tab : e = AuiNotebookEvent ( wxEVT_COMMAND_AUINOTEBOOK_TAB_LEFT_UP , self . GetId ( ) ) e . SetEventObject ( self ) e . SetSelection ( self . GetIdxFromWindow ( self . _click_tab ) ) self . GetEventHandler ( ) . ProcessEvent ( e ) if self . _is_dragging : self . _is_dragging = False self . _on_button = False if self . _drag_image : self . _drag_image . EndDrag ( ) del self . _drag_image self . _drag_image = None event = AuiNotebookEvent ( wxEVT_COMMAND_AUINOTEBOOK_CANCEL_DRAG , self . GetId ( ) ) event . SetSelection ( self . GetIdxFromWindow ( self . _click_tab ) ) event . SetOldSelection ( event . GetSelection ( ) ) event . SetEventObject ( self ) self . GetEventHandler ( ) . ProcessEvent ( event ) if self . _hover_button : self . _hover_button . cur_state = AUI_BUTTON_STATE_NORMAL self . _hover_button = None self . Refresh ( ) self . Update ( )