+ # 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())
+
+ page1 = TitledPage(wizard, "Page 1")
+ page2 = SkipNextPage(wizard, "Page 2")
+ page3 = TitledPage(wizard, "Page 3")
+ page4 = UseAltBitmapPage(wizard, "Page 4")
+ page5 = TitledPage(wizard, "Page 5")
+ self.page1 = page1
+
+ page1.sizer.Add(wxStaticText(page1, -1, """
+This wizard shows the ability to choose at runtime the order
+of the pages and also which bitmap is shown.
+"""))
+ wizard.FitToPage(page1)
+ page5.sizer.Add(wxStaticText(page5, -1, "\nThis is the last page."))
+
+ # Set the initial order of the pages
+ page1.SetNext(page2)
+ page2.SetPrev(page1)
+ page2.SetNext(page3)
+ page3.SetPrev(page2)
+ page3.SetNext(page4)
+ page4.SetPrev(page3)
+ page4.SetNext(page5)
+ page5.SetPrev(page4)
+
+
+ if wizard.RunWizard(page1):
+ wxMessageBox("Wizard completed successfully", "That's all folks!")
+ else:
+ wxMessageBox("Wizard was cancelled", "That's all folks!")