def createTogglePopupPanel(self): panel = wx.Panel(self, -1, style=wx.SIMPLE_BORDER) panel.SetBackgroundColour(BACKGROUND_COLOUR) box, objs = buildTogglePopupBox(panel, CeciliaLib.getInterfaceWidgets()) panel.SetSizerAndFit(box) CeciliaLib.setUserTogglePopups(objs) size = panel.GetSize() return panel, objs, size
def createTogglePopupPanel(self): if CeciliaLib.getVar("systemPlatform") == "win32": BORDER = wx.DOUBLE_BORDER else: BORDER = wx.SIMPLE_BORDER panel = wx.Panel(self, -1, style=BORDER) panel.SetBackgroundColour(BACKGROUND_COLOUR) widgets = CeciliaLib.getVar("interfaceWidgets") box, objs = buildTogglePopupBox(panel, widgets) panel.SetSizerAndFit(box) CeciliaLib.setVar("userTogglePopups", objs) size = panel.GetSize() return panel, objs, size
def createTogglePopupPanel(self, parent, label='', size=(-1, -1), style=wx.SUNKEN_BORDER): panel = wx.Panel(self, -1) panel.SetBackgroundColour(BACKGROUND_COLOUR) box, objs = buildTogglePopupBox(panel, CeciliaLib.getVar("interfaceWidgets")) panel.SetSizerAndFit(box) CeciliaLib.setVar("userTogglePopups", objs) size = panel.GetSize() return panel, objs, size