+# 11/22/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o Updated for wx namespace
+#
+# 11/3-/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o WizardPage* doesn't support GetId()
+#
+
+import wx
+import wx.wizard as wiz
+import images
+
+#----------------------------------------------------------------------
+
+def makePageTitle(wizPg, title):
+ sizer = wx.BoxSizer(wx.VERTICAL)
+ wizPg.SetSizer(sizer)
+ title = wx.StaticText(wizPg, -1, title)
+ title.SetFont(wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD))
+ sizer.AddWindow(title, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ sizer.AddWindow(wx.StaticLine(wizPg, -1), 0, wx.EXPAND|wx.ALL, 5)
+ return sizer
+
+#----------------------------------------------------------------------
+
+class TitledPage(wiz.WizardPageSimple):
+ def __init__(self, parent, title):
+ wiz.WizardPageSimple.__init__(self, parent)
+ self.sizer = makePageTitle(self, title)
+
+
+#----------------------------------------------------------------------
+
+class SkipNextPage(wiz.PyWizardPage):
+ def __init__(self, parent, title):
+ wiz.PyWizardPage.__init__(self, parent)
+ self.next = self.prev = None
+ self.sizer = makePageTitle(self, title)
+
+ self.cb = wx.CheckBox(self, -1, "Skip next page")
+ self.sizer.Add(self.cb, 0, wx.ALL, 5)
+
+ def SetNext(self, next):
+ self.next = next
+
+ def SetPrev(self, prev):
+ self.prev = prev