本文整理汇总了Python中CeciliaLib.getDefaultTotalTime方法的典型用法代码示例。如果您正苦于以下问题:Python CeciliaLib.getDefaultTotalTime方法的具体用法?Python CeciliaLib.getDefaultTotalTime怎么用?Python CeciliaLib.getDefaultTotalTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CeciliaLib
的用法示例。
在下文中一共展示了CeciliaLib.getDefaultTotalTime方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createCeciliaPanel
# 需要导入模块: import CeciliaLib [as 别名]
# 或者: from CeciliaLib import getDefaultTotalTime [as 别名]
def createCeciliaPanel(self, panel):
ceciliaPanel = wx.Panel(panel)
ceciliaPanel.SetBackgroundColour(BACKGROUND_COLOUR)
gridSizer = wx.FlexGridSizer(3,3,10,3)
textTotalTime = wx.StaticText(ceciliaPanel, 0, 'Total time default (sec) :')
textTotalTime.SetFont(self.font)
self.choiceTotalTime = CustomMenu(ceciliaPanel,
choice= ["10.0", "30.0", "60.0", "120.0", "300.0", "600.0", "1200.0", "2400.0", "3600.0"],
init=str(CeciliaLib.getDefaultTotalTime()), outFunction=self.changeDefaultTotalTime)
textUseTooltips = wx.StaticText(ceciliaPanel, 0, 'Use tooltips :')
textUseTooltips.SetFont(self.font)
self.tooltipsToggle = Toggle(ceciliaPanel, CeciliaLib.getUseTooltips(), outFunction=self.enableTooltips)
textgraphTexture = wx.StaticText(ceciliaPanel, 0, 'Use grapher texture :')
textgraphTexture.SetFont(self.font)
self.textureToggle = Toggle(ceciliaPanel, CeciliaLib.getUseGraphTexture(), outFunction=self.enableGraphTexture)
gridSizer.AddMany([
(textTotalTime, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
(wx.StaticText(ceciliaPanel, -1, '', size=(86,-1)), 1, wx.EXPAND),
(self.choiceTotalTime, 0, wx.ALIGN_CENTER_VERTICAL),
(textUseTooltips, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
(wx.StaticText(ceciliaPanel, -1, ''), 1, wx.EXPAND),
(self.tooltipsToggle, 0, wx.ALIGN_CENTER_VERTICAL),
(textgraphTexture, 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, PADDING),
(wx.StaticText(ceciliaPanel, -1, ''), 1, wx.EXPAND),
(self.textureToggle, 0, wx.ALIGN_CENTER_VERTICAL),
])
gridSizer.AddGrowableCol(1, 1)
ceciliaPanel.SetSizerAndFit(gridSizer)
return ceciliaPanel