Represents a source of cell activation, which may be either a user event (mouse or keyboard) or the program itself.
An object of this class is passed to wx.grid.GridCellEditor.TryActivate
by the library and the code overriding this method may use its GetOrigin
method to determine how exactly the cell is being activated.
New in version 4.1/wxWidgets-3.1.4.
Get the key event corresponding to the key press activating the cell. |
|
Get the mouse event corresponding to the click activating the cell. |
|
Get the origin of the activation. |
See |
|
See |
wx.grid.
GridActivationSource
(object)¶Represents a source of cell activation, which may be either a user event (mouse or keyboard) or the program itself.
GetKeyEvent
(self)¶Get the key event corresponding to the key press activating the cell.
This method can be called for objects with Key origin only, use GetOrigin
to check for this first.
GetMouseEvent
(self)¶Get the mouse event corresponding to the click activating the cell.
This method can be called for objects with Mouse origin only, use GetOrigin
to check for this first.
GetOrigin
(self)¶Get the origin of the activation.
KeyEvent
¶See GetKeyEvent
MouseEvent
¶See GetMouseEvent