A specialized command event class for events sent by AuiNotebook
.
wx.lib.agw.aui.auibook.AuiNotebookEvent
Default class constructor. |
|
Returns whether the event was dispatched (used for automatic |
|
Returns the drag and drop source. |
|
Returns the label-itemtext (for |
|
Returns the page that was selected before the change, or -1 if none was |
|
Returns the currently selected page, or -1 if none was selected. |
|
Returns the edit cancel flag (for |
|
Sets the event as dispatched (used for automatic |
|
Sets the drag and drop source. |
|
Sets the edit cancel flag (for |
|
Sets the label. Useful only for |
|
Sets the id of the page selected before the change. |
|
Sets the selection member variable. |
|
|
|
CommandNotebookEvent
(wx.PyCommandEvent)¶A specialized command event class for events sent by AuiNotebook
.
__init__
(self, command_type=None, win_id=0)¶Default class constructor.
command_type – the event kind or an instance of PyCommandEvent
.
win_id (integer) – the window identification number.
GetDispatched
(self)¶Returns whether the event was dispatched (used for automatic AuiNotebook
).
GetDragSource
(self)¶Returns the drag and drop source.
GetLabel
(self)¶Returns the label-itemtext (for EVT_AUINOTEBOOK_BEGIN
| END_LABEL_EDIT
only).
GetOldSelection
(self)¶Returns the page that was selected before the change, or -1 if none was selected.
GetSelection
(self)¶Returns the currently selected page, or -1 if none was selected.
IsEditCancelled
(self)¶Returns the edit cancel flag (for EVT_AUINOTEBOOK_BEGIN
| END_LABEL_EDIT
only).
SetDispatched
(self, b)¶Sets the event as dispatched (used for automatic AuiNotebook
).
b – whether the event was dispatched or not.
SetDragSource
(self, s)¶Sets the drag and drop source.
s – the drag source.
SetEditCanceled
(self, editCancelled)¶Sets the edit cancel flag (for EVT_AUINOTEBOOK_BEGIN
| END_LABEL_EDIT
only).
editCancelled (bool) – whether the editing action has been cancelled or not.
SetLabel
(self, label)¶Sets the label. Useful only for EVT_AUINOTEBOOK_END_LABEL_EDIT
.
label (string) – the new label.
SetOldSelection
(self, s)¶Sets the id of the page selected before the change.
s (integer) – the old selection.
SetSelection
(self, s)¶Sets the selection member variable.
s (integer) – the new selection.