Event class representing the events generated by wx.HeaderCtrl.
See also
__init__ |
|
GetColumn |
Return the index of the column affected by this event. |
GetNewOrder |
Return the new order of the column. |
GetWidth |
Return the current width of the column. |
SetColumn |
|
SetNewOrder |
|
SetWidth |
Column |
See GetColumn and SetColumn |
NewOrder |
See GetNewOrder and SetNewOrder |
Width |
See GetWidth and SetWidth |
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)
Parameters: |
|
---|
__init__ (self, event)
Parameters: | 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.
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 in wx.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) – |
---|
SetNewOrder
(self, order)¶Parameters: | order (int) – |
---|
SetWidth
(self, width)¶Parameters: | width (int) – |
---|
NewOrder
¶See GetNewOrder
and SetNewOrder