wx.wizard.WizardEvent

Inheritance diagram for wx.wizard.WizardEvent:



Description

wx.wizard.WizardEvent class represents an event generated by the wizard: this event is first sent to the page itself and, if not processed there, goes up the window hierarchy as usual.

See also

wx.wizard.Wizard

Event Handling

To process input from a wizard dialog, use these event handler macros to direct input to member functions that take a wx.wizard.WizardEvent argument. For some events, Veto() can be called to prevent the event from happening.

Event Name Description
wx.wizard.EVT_WIZARD_PAGE_CHANGED(id, func) The page has just been changed (this event cannot be vetoed).
wx.wizard.EVT_WIZARD_PAGE_CHANGING(id, func) The page is being changed (this event can be vetoed).
wx.wizard.EVT_WIZARD_CANCEL(id, func) The user attempted to cancel the wizard (this event may also be vetoed).
wx.wizard.EVT_WIZARD_HELP(id, func) The wizard help button was pressed.
wx.wizard.EVT_WIZARD_FINISHED(id, func) The wizard finished button was pressed.

Methods Summary

Properties Summary

Class API

Methods

__init__(type=wx.EVT_NULL, id=-1, direction=True, page=None)

Constructor. It is not normally used by the user code as the objects of this type are constructed by wx.wizard.Wizard.

Parameters:


Returns:

wx.wizard.WizardEvent


GetDirection()

Return the direction in which the page is changing: for wx.wizard.EVT_WIZARD_PAGE_CHANGING, return True if we’re going forward or False otherwise and for wx.wizard.EVT_WIZARD_PAGE_CHANGED return True if we came from the previous page and False if we returned from the next one.


Returns:

bool


GetPage()

Returns the wx.wizard.WizardPage which was active when this event was generated.


Returns:

wx.wizard.WizardPage


Properties

Direction
See GetDirection
Page
See GetPage