From: Youness Alaoui Date: Tue, 28 Jul 2015 19:51:20 +0000 (-0400) Subject: Add a new AddPanel API to InfoPage X-Git-Tag: lulzbot-15.02.1-2.01~56^2~27 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e806b8c89f6d7dfcef82c9e70409676315969062;p=cura.git Add a new AddPanel API to InfoPage --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 224ac480..d281be90 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -281,6 +281,14 @@ class InfoPage(wx.wizard.WizardPageSimple): self.rowNr += 1 return bitmap + def AddPanel(self): + panel = wx.Panel(self, -1) + sizer = wx.GridBagSizer(2, 2) + panel.SetSizer(sizer) + self.GetSizer().Add(panel, pos=(self.rowNr, 0), span=(1, 2), flag=wx.ALL | wx.EXPAND) + self.rowNr += 1 + return panel + def AddCheckmark(self, label, bitmap): check = wx.StaticBitmap(self, -1, bitmap) text = wx.StaticText(self, -1, label)