当前位置: 首页>>代码示例>>Python>>正文


Python CeciliaLib.getJackParams方法代码示例

本文整理汇总了Python中CeciliaLib.getJackParams方法的典型用法代码示例。如果您正苦于以下问题:Python CeciliaLib.getJackParams方法的具体用法?Python CeciliaLib.getJackParams怎么用?Python CeciliaLib.getJackParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CeciliaLib的用法示例。


在下文中一共展示了CeciliaLib.getJackParams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: createJackPane

# 需要导入模块: import CeciliaLib [as 别名]
# 或者: from CeciliaLib import getJackParams [as 别名]
    def createJackPane(self, panel):
        jackPanel = wx.Panel(panel)
        jackPanel.SetBackgroundColour(BACKGROUND_COLOUR)

        gridSizer = wx.FlexGridSizer(3, 3, 5, 5)
        
        jackClientLabel = wx.StaticText(jackPanel, -1, 'Jack client :')
        jackClientLabel.SetFont(self.font)       
        self.jackClient = wx.TextCtrl(jackPanel, -1, CeciliaLib.getJackParams()['client'], size=(235,-1), style=wx.TE_PROCESS_ENTER|wx.NO_BORDER)
        self.jackClient.SetFont(self.font)       
        self.jackClient.Bind(wx.EVT_TEXT_ENTER, self.changeJackClient)
        self.jackClient.SetForegroundColour((50,50,50))
        self.jackClient.SetBackgroundColour("#999999")

        jackInPortLabel = wx.StaticText(jackPanel, -1, 'In Port :')
        jackInPortLabel.SetFont(self.font)       
        self.jackInPort = wx.TextCtrl(jackPanel, -1, CeciliaLib.getJackParams()['inPortName'], size=(235,-1), style=wx.TE_PROCESS_ENTER|wx.NO_BORDER)
        self.jackInPort.SetFont(self.font)       
        self.jackInPort.Bind(wx.EVT_TEXT_ENTER, self.changeJackInPort)
        self.jackInPort.SetForegroundColour((50,50,50))
        self.jackInPort.SetBackgroundColour("#999999")

        jackOutPortLabel = wx.StaticText(jackPanel, -1, 'Out Port :')
        jackOutPortLabel.SetFont(self.font)       
        self.jackOutPort = wx.TextCtrl(jackPanel, -1, CeciliaLib.getJackParams()['outPortName'], size=(235,-1), style=wx.TE_PROCESS_ENTER|wx.NO_BORDER)
        self.jackOutPort.SetFont(self.font)       
        self.jackOutPort.Bind(wx.EVT_TEXT_ENTER, self.changeJackOutPort)
        self.jackOutPort.SetForegroundColour((50,50,50))
        self.jackOutPort.SetBackgroundColour("#999999")

        gridSizer.AddMany([ 
                            (jackClientLabel, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
                            (wx.StaticText(jackPanel, -1, '', size=(15,-1)), 1, wx.EXPAND),
                            (self.jackClient, 0, wx.ALIGN_CENTER_VERTICAL),
                            (jackInPortLabel, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
                            (wx.StaticText(jackPanel, -1, ''), 1, wx.EXPAND),
                            (self.jackInPort, 0, wx.ALIGN_CENTER_VERTICAL),
                            (jackOutPortLabel, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
                            (wx.StaticText(jackPanel, -1, ''), 1, wx.EXPAND),
                            (self.jackOutPort, 0, wx.ALIGN_CENTER_VERTICAL),
                         ])
        
        gridSizer.AddGrowableCol(1, 1)
        jackPanel.SetSizerAndFit(gridSizer)
        return jackPanel
开发者ID:belangeo,项目名称:cecilia4csound,代码行数:47,代码来源:PreferencePanel.py


注:本文中的CeciliaLib.getJackParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。