The Origin enumeration provides the following values:
Description
Value
Program
Activated due to an explicit wx.grid.Grid.EnableCellEditControl call.
wx.grid.Grid.EnableCellEditControl
Key
Activated due to the user pressing a key, see GetKeyEvent .
GetKeyEvent
Mouse
Activated due to the user clicking on a cell, see GetMouseEvent .
GetMouseEvent