Need to use wizard.GetPageAreaSizer().Add(page) now to get the layout
handled correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,6 +136,7 @@ class TestPanel(wx.Panel):
|
|||||||
wx.MessageBox("Cancelling on the first page has been prevented.", "Sorry")
|
wx.MessageBox("Cancelling on the first page has been prevented.", "Sorry")
|
||||||
evt.Veto()
|
evt.Veto()
|
||||||
|
|
||||||
|
|
||||||
def OnWizFinished(self, evt):
|
def OnWizFinished(self, evt):
|
||||||
self.log.write("OnWizFinished\n")
|
self.log.write("OnWizFinished\n")
|
||||||
|
|
||||||
@@ -162,6 +163,7 @@ wxWizardPageSimple class can easily be used for the pages."""))
|
|||||||
wiz.WizardPageSimple_Chain(page2, page3)
|
wiz.WizardPageSimple_Chain(page2, page3)
|
||||||
wiz.WizardPageSimple_Chain(page3, page4)
|
wiz.WizardPageSimple_Chain(page3, page4)
|
||||||
|
|
||||||
|
wizard.GetPageAreaSizer().Add(page1)
|
||||||
if wizard.RunWizard(page1):
|
if wizard.RunWizard(page1):
|
||||||
wx.MessageBox("Wizard completed successfully", "That's all folks!")
|
wx.MessageBox("Wizard completed successfully", "That's all folks!")
|
||||||
else:
|
else:
|
||||||
@@ -202,6 +204,7 @@ of the pages and also which bitmap is shown.
|
|||||||
page5.SetPrev(page4)
|
page5.SetPrev(page4)
|
||||||
|
|
||||||
|
|
||||||
|
wizard.GetPageAreaSizer().Add(page1)
|
||||||
if wizard.RunWizard(page1):
|
if wizard.RunWizard(page1):
|
||||||
wx.MessageBox("Wizard completed successfully", "That's all folks!")
|
wx.MessageBox("Wizard completed successfully", "That's all folks!")
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user