Event class representing the events generated by wx.HeaderCtrl.
See also
Return the index of the column affected by this event. |
|
Return the new order of the column. |
|
Return the current width of the column. |
|
See |
|
wx.
HeaderCtrlEvent
(NotifyEvent)¶Possible constructors:
HeaderCtrlEvent(commandType=wxEVT_NULL, winid=0)
HeaderCtrlEvent(event)
Event class representing the events generated by HeaderCtrl.
__init__
(self, *args, **kw)¶__init__ (self, commandType=wxEVT_NULL, winid=0)
commandType (wx.EventType) –
winid (int) –
__init__ (self, event)
event (wx.HeaderCtrlEvent) –
GetColumn
(self)¶Return the index of the column affected by this event.
This method can be called for all header control events.
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 in wx.HeaderCtrl.GetColumnsOrder
.
int
GetWidth
(self)¶Return the current width of the column.
This method can only be called for the dragging events.
int
SetColumn
(self, col)¶col (int) –
SetNewOrder
(self, order)¶order (int) –
SetWidth
(self, width)¶width (int) –
NewOrder
¶See GetNewOrder
and SetNewOrder