From: Youness Alaoui Date: Mon, 27 Jul 2015 18:58:32 +0000 (-0400) Subject: Fix the pages of the wizard not being added to the AreaSizer causing the next/back... X-Git-Tag: lulzbot-15.02.1-2.01~56^2~36 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dcf655c58f46de295278089c9238a0d1bdf1a0b0;p=cura.git Fix the pages of the wizard not being added to the AreaSizer causing the next/back buttons to move to the top of the frame when resized --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 182f2dba..4e9dceed 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -111,6 +111,7 @@ class InfoPage(wx.wizard.WizardPageSimple): def __init__(self, parent, title): wx.wizard.WizardPageSimple.__init__(self, parent) + parent.GetPageAreaSizer().Add(self) sizer = wx.GridBagSizer(5, 5) self.sizer = sizer self.SetSizer(sizer) @@ -1100,7 +1101,6 @@ class ConfigWizard(wx.wizard.Wizard): wx.wizard.WizardPageSimple.Chain(self.machineSelectPage, self.lulzbotReadyPage) self.FitToPage(self.machineSelectPage) - self.GetPageAreaSizer().Add(self.machineSelectPage) self.RunWizard(self.machineSelectPage) self.Destroy() @@ -1582,7 +1582,6 @@ class bedLevelWizard(wx.wizard.Wizard): self.headOffsetCalibration = None self.FitToPage(self.mainPage) - self.GetPageAreaSizer().Add(self.mainPage) self.RunWizard(self.mainPage) self.Destroy() @@ -1610,7 +1609,6 @@ class headOffsetWizard(wx.wizard.Wizard): self.mainPage = headOffsetCalibrationPage(self) self.FitToPage(self.mainPage) - self.GetPageAreaSizer().Add(self.mainPage) self.RunWizard(self.mainPage) self.Destroy()