wx.MessageBox("Cancelling on the first page has been prevented.", "Sorry")
evt.Veto()
+
def OnWizFinished(self, evt):
self.log.write("OnWizFinished\n")
wiz.WizardPageSimple_Chain(page2, page3)
wiz.WizardPageSimple_Chain(page3, page4)
+ wizard.GetPageAreaSizer().Add(page1)
if wizard.RunWizard(page1):
wx.MessageBox("Wizard completed successfully", "That's all folks!")
else:
#wizard.SetExtraStyle(wx.WIZARD_EX_HELPBUTTON)
#wizard.Create(self, self.ID_wiz, "Simple Wizard",
# images.getWizTest1Bitmap())
- wizard = wiz.Wizard(self, -1, "Simple Wizard", images.getWizTest1Bitmap())
+ wizard = wiz.Wizard(self, -1, "Dynamic Wizard", images.getWizTest1Bitmap())
page1 = TitledPage(wizard, "Page 1")
page2 = SkipNextPage(wizard, "Page 2")
page5.SetPrev(page4)
+ wizard.GetPageAreaSizer().Add(page1)
if wizard.RunWizard(page1):
wx.MessageBox("Wizard completed successfully", "That's all folks!")
else: