wxGrid*Event
There are special mouse event types and event classes specific to the wx.grid architecture. The grid event class itself is a subclass of the wx.CommandEvent.
Methods of wx.grid.GridEvent
AltDown() - Returns true if the alt key was pressed when the event was triggered.
ControlDown() - Returns true if the control key was pressed when the event was triggered.
GetCol() - Returns the index of the column of the cell where the event occurred.
GetPosition() - Returns a wx.Point representing the logical coordinates in pixels where the event occurred.
GetRow() - Returns the index of the row of the cell where the event occurred.
MetaDown() - Returns true if the meta key was pressed when the event was triggered.
- Selecting() - Returns true if the event is a selection and false if the event is a deselection of a cell
ShiftDown() - Returns true if the shift key was pressed when the event was triggered.
Cell event types
- wx.grid.EVT_GRID_CELL_CHANGE - Triggered when the user changes the data in a cell via an editor.
- wx.grid.EVT_GRID_CELL_LEFT_CLICK - Triggered when the user performs a left mouse click in a cell.
- wx.grid.EVT_GRID_CELL_LEFT_DCLICK - Triggered when the user performs a left mouse double-click in a cell.
- wx.grid.EVT_GRID_CELL_RIGHT_CLICK - Triggered when the user performs a right mouse click in a cell.
- wx.grid.EVT_GRID_CELL_RIGHT_DCLICK - Triggered when the user performs a right mouse double-click in a cell.
- wx.grid.EVT_GRID_EDITOR_HIDDEN - Triggered when a cell editor is hidden at the end of an edit session.
- wx.grid.EVT_GRID_EDITOR_SHOWN - Triggered when a cell editor is shown at the beginning of an edit session.
- wx.grid.EVT_GRID_LABEL_LEFT_CLICK - Triggered when the user performs a left mouse click in the row or column label area.
- wx.grid.EVT_GRID_LABEL_LEFT_DCLICK - Triggered when the user performs a left mouse double click in the row or column label area.
- wx.grid.EVT_GRID_LABEL_RIGHT_CLICK - Triggered when the user performs a right mouse click in the row or column label area.
- wx.grid.EVT_GRID_LABEL_RIGHT_DCLICK - Triggered when the user performs a right double mouse click in the row or column label area.
- wx.grid.EVT_GRID_SELECT_CELL - Triggered when the user moves the focus to a new cell, selecting it.