phoenix_title 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.

New in version 4.1/wxWidgets-3.1.4.


class_hierarchy Class Hierarchy

Inheritance diagram for class GridActivationSource:

method_summary Methods Summary

GetKeyEvent

Get the key event corresponding to the key press activating the cell.

GetMouseEvent

Get the mouse event corresponding to the click activating the cell.

GetOrigin

Get the origin of the activation.


property_summary Properties Summary

KeyEvent

See GetKeyEvent

MouseEvent

See GetMouseEvent


api 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:

KeyEvent



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:

MouseEvent



GetOrigin(self)

Get the origin of the activation.

Return type:

wx.grid.GridActivationSource.Origin


Properties

KeyEvent

See GetKeyEvent



MouseEvent

See GetMouseEvent