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
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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