wx.grid.GridSizeEvent¶
This event class contains information about a row/column resize event.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.grid.GridSizeEvent parameter.
EVT_GRID_CMD_COL_SIZE: The user resized a column, corresponds to
wxEVT_GRID_COL_SIZE
event type.EVT_GRID_CMD_ROW_SIZE: The user resized a row, corresponds to
wxEVT_GRID_ROW_SIZE
event type.EVT_GRID_ROW_AUTO_SIZE: This event is sent when a row must be resized to its best size, e.g. when the user double clicks the row divider. The default implementation simply resizes the row to fit the row label (but not its contents as this could be too slow for big grids). This macro corresponds to
wxEVT_GRID_ROW_AUTO_SIZE
event type and is new since wxWidgets 3.1.7.EVT_GRID_COL_SIZE: Same as EVT_GRID_CMD_COL_SIZE() but uses
ID_ANY
id.EVT_GRID_COL_AUTO_SIZE: This event is sent when a column must be resized to its best size, e.g. when the user double clicks the column divider. The default implementation simply resizes the column to fit the column label (but not its contents as this could be too slow for big grids). This macro corresponds to
wxEVT_GRID_COL_AUTO_SIZE
event type and is new since wxWidgets 2.9.5.EVT_GRID_ROW_SIZE: Same as EVT_GRID_CMD_ROW_SIZE() but uses
ID_ANY
id.
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Returns |
|
Returns |
|
Position in pixels at which the event occurred. |
|
Row or column at that was resized. |
|
Returns |
|
Returns |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.grid.GridSizeEvent(NotifyEvent)¶
Possible constructors:
GridSizeEvent() -> None GridSizeEvent(id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=KeyboardState()) -> None
This event class contains information about a row/column resize event.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
- Return type:
None
__init__ (self, id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=KeyboardState())
Constructor for initializing all event attributes.
- Parameters:
id (int)
type (wx.EventType)
obj (wx.Object)
rowOrCol (int)
x (int)
y (int)
kbd (wx.KeyboardState)
- Return type:
None
- AltDown(self)¶
Returns
True
if the Alt key was down at the time of the event.- Return type:
bool
- ControlDown(self)¶
Returns
True
if the Control key was down at the time of the event.- Return type:
bool
- GetPosition(self)¶
Position in pixels at which the event occurred.
- Return type:
Point
- GetRowOrCol(self)¶
Row or column at that was resized.
- Return type:
int
- MetaDown(self)¶
Returns
True
if the Meta key was down at the time of the event.- Return type:
bool
- ShiftDown(self)¶
Returns
True
if the Shift key was down at the time of the event.- Return type:
bool
Properties¶
- Position¶
See
GetPosition
- RowOrCol¶
See
GetRowOrCol