parameters: (self, event)
docstring: Override left-click behavior to prevent left-click edit initiation
docstring_summary: Override left-click behavior to prevent left-click edit initiation
docstring_tokens: Override left - click behavior to prevent left - click edit initiation
function: def OnLeftClick(self, event):
          """ Override left-click behavior to prevent left-click edit initiation """
          # Save the cell clicked
          currCell = (event.GetRow(), event.GetCol())
  
          # Suppress event if same cell clicked twice in a row.
          # This prevents a single-click from initiating an edit.
          if currCell != (self._lastRow, self._lastCol): event.Skip()
function_tokens: def OnLeftClick ( self , event ) : # Save the cell clicked currCell = ( event . GetRow ( ) , event . GetCol ( ) ) # Suppress event if same cell clicked twice in a row. # This prevents a single-click from initiating an edit. if currCell != ( self . _lastRow , self . _lastCol ) : event . Skip ( )