wx.grid.GridCellActivatableEditor¶
Base class for activatable editors.
Inheriting from this class makes it simpler to implement editors that support only activation, but not in-place editing, as they only need to implement TryActivate
, DoActivate
and Clone
methods, but not all the other pure virtual methods of wx.grid.GridCellEditor.
Added in version 4.1/wxWidgets-3.1.4.
Class Hierarchy¶
Methods Summary¶
Same method as in wx.grid.GridCellEditor, but pure virtual. |
|
Same method as in wx.grid.GridCellEditor, but pure virtual. |
Class API¶
- class wx.grid.GridCellActivatableEditor(GridCellEditor)¶
Base class for activatable editors.
Methods¶
- DoActivate(self, row, col, grid)¶
Same method as in wx.grid.GridCellEditor, but pure virtual.
- Parameters:
row (int)
col (int)
grid (wx.grid.Grid)
- Return type:
None
- TryActivate(self, row, col, grid, actSource)¶
Same method as in wx.grid.GridCellEditor, but pure virtual.
Note that the implementation of this method must never return
wx.grid.GridActivationResult.DoEdit
for the editors inheriting from this class, as it doesn’t support normal editing.- Parameters:
row (int)
col (int)
grid (wx.grid.Grid)
actSource (wx.grid.GridActivationSource)
- Return type: