X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85260f24dea6546ecfff376bac1d8838237ec2fe..eb6a4098a0f2e9ae55e72ad960b3dfc134d177c9:/wxPython/demo/wxWizard.py diff --git a/wxPython/demo/wxWizard.py b/wxPython/demo/wxWizard.py index 402a307031..1b1211a6ad 100644 --- a/wxPython/demo/wxWizard.py +++ b/wxPython/demo/wxWizard.py @@ -107,6 +107,7 @@ class TestPanel(wxPanel): EVT_WIZARD_PAGE_CHANGED(self, self.ID_wiz, self.OnWizPageChanged) EVT_WIZARD_PAGE_CHANGING(self, self.ID_wiz, self.OnWizPageChanging) EVT_WIZARD_CANCEL(self, self.ID_wiz, self.OnWizCancel) + EVT_WIZARD_FINISHED(self, self.ID_wiz, self.OnWizFinished) def OnWizPageChanged(self, evt): @@ -137,6 +138,9 @@ class TestPanel(wxPanel): wxMessageBox("Cancelling on the first page has been prevented.", "Sorry") evt.Veto() + def OnWizFinished(self, evt): + self.log.write("OnWizFinished\n") + def OnRunSimpleWizard(self, evt): # Create the wizard and the pages @@ -170,6 +174,10 @@ wxWizardPageSimple class can easily be used for the pages.""")) def OnRunDynamicWizard(self, evt): # Create the wizard and the pages + #wizard = wxPreWizard() + #wizard.SetExtraStyle(wxWIZARD_EX_HELPBUTTON) + #wizard.Create(self, self.ID_wiz, "Simple Wizard", + # images.getWizTest1Bitmap()) wizard = wxWizard(self, self.ID_wiz, "Simple Wizard", images.getWizTest1Bitmap())