parameters: (self, pane_window, start, offset)
docstring: Handles the mouse click on the pane gripper.
  
          :param Window `pane_window`: the window managed by the pane;
          :param Point `start`: the mouse-click position;
          :param Point `offset`: an offset point from the `start` position.
docstring_summary: Handles the mouse click on the pane gripper.
docstring_tokens: Handles the mouse click on the pane gripper .
function: def OnGripperClicked(self, pane_window, start, offset):
          """
          Handles the mouse click on the pane gripper.
  
          :param Window `pane_window`: the window managed by the pane;
          :param Point `start`: the mouse-click position;
          :param Point `offset`: an offset point from the `start` position.
          """
  
          # try to find the pane
          paneInfo = self.GetPane(pane_window)
  
          if not paneInfo.IsOk():
              raise Exception("Pane window not found")
  
          if self.GetAGWFlags() & AUI_MGR_ALLOW_ACTIVE_PANE:
              # set the caption as active
              ret, self._panes = SetActivePane(self._panes, pane_window)
              self.RefreshCaptions()
              self.FireEvent(wxEVT_AUI_PANE_ACTIVATED, pane_window, canVeto=False)
  
          self._action_part = None
          self._action_pane = paneInfo
          self._action_window = pane_window
          self._action_start = start
          self._action_offset = offset
          self._toolbar_action_offset = wx.Point(*self._action_offset)
  
          self._frame.CaptureMouse()
  
          if paneInfo.IsDocked():
              self._action = actionClickCaption
          else:
              if paneInfo.IsToolbar():
                  self._action = actionDragToolbarPane
              else:
                  self._action = actionDragFloatingPane
  
              if paneInfo.frame:
  
                  windowPt = paneInfo.frame.GetRect().GetTopLeft()
                  originPt = paneInfo.frame.ClientToScreen(wx.Point())
                  self._action_offset += originPt - windowPt
                  self._toolbar_action_offset = wx.Point(*self._action_offset)
  
                  if self._agwFlags & AUI_MGR_TRANSPARENT_DRAG:
                      paneInfo.frame.SetTransparent(150)
  
              if paneInfo.IsToolbar():
                  self._frame.SetCursor(wx.StockCursor(wx.CURSOR_SIZING))
function_tokens: def OnGripperClicked ( self , pane_window , start , offset ) : # try to find the pane paneInfo = self . GetPane ( pane_window ) if not paneInfo . IsOk ( ) : raise Exception ( "Pane window not found" ) if self . GetAGWFlags ( ) & AUI_MGR_ALLOW_ACTIVE_PANE : # set the caption as active ret , self . _panes = SetActivePane ( self . _panes , pane_window ) self . RefreshCaptions ( ) self . FireEvent ( wxEVT_AUI_PANE_ACTIVATED , pane_window , canVeto = False ) self . _action_part = None self . _action_pane = paneInfo self . _action_window = pane_window self . _action_start = start self . _action_offset = offset self . _toolbar_action_offset = wx . Point ( * self . _action_offset ) self . _frame . CaptureMouse ( ) if paneInfo . IsDocked ( ) : self . _action = actionClickCaption else : if paneInfo . IsToolbar ( ) : self . _action = actionDragToolbarPane else : self . _action = actionDragFloatingPane if paneInfo . frame : windowPt = paneInfo . frame . GetRect ( ) . GetTopLeft ( ) originPt = paneInfo . frame . ClientToScreen ( wx . Point ( ) ) self . _action_offset += originPt - windowPt self . _toolbar_action_offset = wx . Point ( * self . _action_offset ) if self . _agwFlags & AUI_MGR_TRANSPARENT_DRAG : paneInfo . frame . SetTransparent ( 150 ) if paneInfo . IsToolbar ( ) : self . _frame . SetCursor ( wx . StockCursor ( wx . CURSOR_SIZING ) )