def createHorizontalSlidersPanel(self): panel = wx.Panel(self, -1, style=wx.SIMPLE_BORDER) panel.SetBackgroundColour(BACKGROUND_COLOUR) box, sl = buildHorizontalSlidersBox(panel, CeciliaLib.getInterfaceWidgets()) CeciliaLib.setUserSliders(sl) panel.SetSizerAndFit(box) size = panel.GetSize() return panel, size
def createSlidersPanel(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, sl = buildHorizontalSlidersBox(panel, widgets) CeciliaLib.setVar("userSliders", sl) panel.SetSizerAndFit(box) size = panel.GetSize() return panel, size
def createHorizontalSlidersPanel(self, parent, label='', size=(-1, -1), style=wx.SUNKEN_BORDER, name=''): panel = wx.Panel(self, -1) panel.SetBackgroundColour(BACKGROUND_COLOUR) box, sl = buildHorizontalSlidersBox( panel, CeciliaLib.getVar("interfaceWidgets")) CeciliaLib.setVar("userSliders", sl) panel.SetSizerAndFit(box) size = panel.GetSize() return panel, size