本文整理汇总了Python中CeciliaLib.setPresetPanel方法的典型用法代码示例。如果您正苦于以下问题:Python CeciliaLib.setPresetPanel方法的具体用法?Python CeciliaLib.setPresetPanel怎么用?Python CeciliaLib.setPresetPanel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CeciliaLib
的用法示例。
在下文中一共展示了CeciliaLib.setPresetPanel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import CeciliaLib [as 别名]
# 或者: from CeciliaLib import setPresetPanel [as 别名]
def __init__(self, parent, id=-1, title='', editor=None,
pos=wx.DefaultPosition, size=wx.DefaultSize,
style= wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | \
wx.CLIP_CHILDREN | wx.WANTS_CHARS):
wx.Frame.__init__(self, parent, id, title, pos, size, style)
self.ceciliaEditor = editor
self.menubar = InterfaceMenuBar(self, self.ceciliaEditor)
self.SetMenuBar(self.menubar)
self.box = wx.GridBagSizer(0, 0)
self.controlBox = wx.BoxSizer(wx.VERTICAL)
self.controlPanel = Control.CECControl(self, -1)
togglePopupPanel, objs, tpsize = self.createTogglePopupPanel()
slidersPanel, slPanelSize = self.createHorizontalSlidersPanel()
self.grapher = getGrapher(self)
presetPanel = Preset.CECPreset(self)
CeciliaLib.setPresetPanel(presetPanel)
self.controlBox.Add(self.controlPanel, 1, wx.EXPAND | wx.RIGHT, -1)
self.controlBox.Add(presetPanel, 0, wx.EXPAND | wx.TOP | wx.RIGHT, -1)
self.controlBox.Add(togglePopupPanel, 0, wx.EXPAND | wx.TOP | wx.RIGHT, -1)
self.box.Add(self.controlBox, (0,0), span=(2,1), flag=wx.EXPAND)
self.box.Add(self.grapher, (0,1), flag=wx.EXPAND)
self.box.Add(slidersPanel, (1,1), flag=wx.EXPAND | wx.TOP, border=-1)
self.box.AddGrowableCol(1, 1)
self.box.AddGrowableRow(0, 1)
pos, size = self.positionToClientArea(CeciliaLib.getInterfacePosition(), CeciliaLib.getInterfaceSize())
self.SetSizer(self.box)
self.SetSize(size)
self.Bind(wx.EVT_CLOSE, self.onClose)
if pos == None:
self.Center()
else:
self.SetPosition(pos)
wx.CallAfter(self.createGrapher)