wx.HeaderCtrlEvent¶
Event class representing the events generated by wx.HeaderCtrl.
See also
Class Hierarchy¶
Methods Summary¶
Return the index of the column affected by this event. |
|
Return the new order of the column. |
|
Return the current width of the column. |
|
Properties Summary¶
See |
|
Class API¶
- class wx.HeaderCtrlEvent(NotifyEvent)¶
Possible constructors:
HeaderCtrlEvent(commandType=wxEVT_NULL, winid=0) -> None HeaderCtrlEvent(event) -> None
Event class representing the events generated by HeaderCtrl.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, commandType=wxEVT_NULL, winid=0)
- Parameters:
commandType (wx.EventType)
winid (int)
- Return type:
None
__init__ (self, event)
- Parameters:
event (wx.HeaderCtrlEvent)
- Return type:
None
- GetColumn(self)¶
Return the index of the column affected by this event.
This method can be called for all header control events.
- Return type:
int
- GetNewOrder(self)¶
Return the new order of the column.
This method can only be called for a reorder event for which it indicates the tentative new position for the column
GetColumn
selected by the user. If the event is not vetoed, this will become the new column position inwx.HeaderCtrl.GetColumnsOrder
.- Return type:
int
- GetWidth(self)¶
Return the current width of the column.
This method can only be called for the dragging events.
- Return type:
int
- SetColumn(self, col)¶
- Parameters:
col (int)
- Return type:
None
- SetNewOrder(self, order)¶
- Parameters:
order (int)
- Return type:
None
- SetWidth(self, width)¶
- Parameters:
width (int)
- Return type:
None
Properties¶
- NewOrder¶
See
GetNewOrder
andSetNewOrder