Phoenix Logo

phoenix_title wx.grid.GridSizeEvent

This event class contains information about a row/column resize event.

events 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_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 Class Hierarchy

Inheritance diagram for class GridSizeEvent:


method_summary Methods Summary

__init__ Default constructor.
AltDown Returns True if the Alt key was down at the time of the event.
ControlDown Returns True if the Control key was down at the time of the event.
GetPosition Position in pixels at which the event occurred.
GetRowOrCol Row or column at that was resized.
MetaDown Returns True if the Meta key was down at the time of the event.
ShiftDown Returns True if the Shift key was down at the time of the event.

property_summary Properties Summary

Position See GetPosition
RowOrCol See GetRowOrCol

api Class API



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


Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor.



__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) –





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