wx.grid.GridActivationSource¶
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.
Added in version 4.1/wxWidgets-3.1.4.
Class Hierarchy¶
Methods Summary¶
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. |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.grid.GridActivationSource(object)¶
Represents a source of cell activation, which may be either a user event (mouse or keyboard) or the program itself.
Methods¶
- 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.- Return type:
- 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.- Return type:
- GetOrigin(self)¶
Get the origin of the activation.
- Return type:
Properties¶
- KeyEvent¶
See
GetKeyEvent
- MouseEvent¶
See
GetMouseEvent