This event class contains information about a row/column resize event.
^^
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. ^^
Default constructor. |
|
Returns |
|
Returns |
|
Position in pixels at which the event occurred. |
|
Row or column at that was resized. |
|
Returns |
|
Returns |
See |
|
See |
wx.grid.
GridSizeEvent
(NotifyEvent)¶Possible constructors:
GridSizeEvent()
GridSizeEvent(id, type, obj, rowOrCol=-1, x=-1, y=-1,
kbd=KeyboardState())
This event class contains information about a row/column resize event.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
__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) –
AltDown
(self)¶Returns True
if the Alt key was down at the time of the event.
bool
ControlDown
(self)¶Returns True
if the Control key was down at the time of the event.
bool
GetPosition
(self)¶Position in pixels at which the event occurred.
Point
GetRowOrCol
(self)¶Row or column at that was resized.
int
MetaDown
(self)¶Returns True
if the Meta key was down at the time of the event.
bool
ShiftDown
(self)¶Returns True
if the Shift key was down at the time of the event.
bool
Position
¶See GetPosition
RowOrCol
¶See GetRowOrCol