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)
+ sizer.Add(title, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ sizer.Add(wx.StaticLine(wizPg, -1), 0, wx.EXPAND|wx.ALL, 5)
return sizer
#----------------------------------------------------------------------
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:
page5.SetPrev(page4)
+ wizard.GetPageAreaSizer().Add(page1)
if wizard.RunWizard(page1):
wx.MessageBox("Wizard completed successfully", "That's all folks!")
else:
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])