+ self.sizer = makePageTitle(self, title)
+
+
+#----------------------------------------------------------------------
+
+class SkipNextPage(wxPyWizardPage):
+ def __init__(self, parent, title):
+ wxPyWizardPage.__init__(self, parent)
+ self.next = self.prev = None
+ self.sizer = makePageTitle(self, title)
+
+ self.cb = wxCheckBox(self, -1, "Skip next page")
+ self.sizer.Add(self.cb, 0, wxALL, 5)
+
+ def SetNext(self, next):
+ self.next = next
+
+ def SetPrev(self, prev):
+ self.prev = prev
+
+
+ # Classes derived from wxPyWizardPanel must override
+ # GetNext and GetPrev, and may also override GetBitmap
+ # as well as all those methods overridable by
+ # wxPyWindow.
+
+ def GetNext(self):
+ """If the checkbox is set then return the next page's next page"""
+ next = self.next
+ if self.cb.GetValue():
+ next = next.GetNext()
+ return next
+
+ def GetPrev(self):
+ return self.prev
+
+#----------------------------------------------------------------------
+
+class UseAltBitmapPage(wxPyWizardPage):
+ def __init__(self, parent, title):
+ wxPyWizardPage.__init__(self, parent)
+ self.next = self.prev = None
+ self.sizer = makePageTitle(self, title)
+
+ self.sizer.Add(wxStaticText(self, -1, "This page uses a different bitmap"),
+ 0, wxALL, 5)
+
+ def SetNext(self, next):
+ self.next = next