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¶
Inheritance diagram for class GridSizeEvent:
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¶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.
__init__ (self)
Default constructor.
None
__init__ (self, id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=KeyboardState())
Constructor for initializing all event attributes.
id (int)
type (wx.EventType)
obj (wx.Object)
rowOrCol (int)
x (int)
y (int)
kbd (wx.KeyboardState)
None
Returns True if the Alt key was down at the time of the event.
bool
Returns True if the Control key was down at the time of the event.
bool
Position in pixels at which the event occurred.
Point
Row or column at that was resized.
int
Returns True if the Meta key was down at the time of the event.
bool
Returns True if the Shift key was down at the time of the event.
bool
See GetPosition
See GetRowOrCol