本文整理汇总了Python中Components.ConfigList.ConfigList.hide方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigList.hide方法的具体用法?Python ConfigList.hide怎么用?Python ConfigList.hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.ConfigList.ConfigList
的用法示例。
在下文中一共展示了ConfigList.hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BrowserMenu
# 需要导入模块: from Components.ConfigList import ConfigList [as 别名]
# 或者: from Components.ConfigList.ConfigList import hide [as 别名]
#.........这里部分代码省略.........
</widget>
<widget name="blue" position="620,%(btnTxtY)d" size="200,20" foregroundColor="white" backgroundColor="background" font="Regular;18" transparent="1" halign="left" valign="top"/>
</screen>
""" %{ "w" : width,
"h" : height,
"listW" : width - 210, "listH" : height - 90,
"inputY" : height - 80,
"configH" : height - 90,
"btnY" : bof + 2,
"btnTxtY" : bof
}
def __init__(self, session, currentTitle, currentUrl, menulist = None):
Screen.__init__(self, session)
self.currentUrl = currentUrl
self.currentTitle = currentTitle
#Menu
if menulist is None:
self.menu = MenuList([
(_("Bookmarks"), self.MENU_BOOKMARKS),
(_("History"), self.MENU_HISTORY),
(_("Downloads"), self.MENU_DOWNLOADS),
(_("Certificates"), self.MENU_CERTS),
(_("Cookies"), self.MENU_COOKIES),
(_("Settings"), self.MENU_SETTINGS),
], enableWrapAround = True)
else:
self.menu = MenuList(menulist, enableWrapAround=True)
self["menu"] = self.menu
self["statuslabel"] = Label("")
self["statuslabel"].hide()
#Color Buttons
self["button_red"] = Boolean(False)
self["button_green"] = Boolean(False)
self["button_yellow"] = Boolean(False)
self["button_blue"] = Boolean(False)
self.red = Label("")
self.green = Label("")
self.yellow = Label("")
self.blue = Label("")
self["red"] = self.red
self["green"] = self.green
self["yellow"] = self.yellow
self["blue"] = self.blue
#Lists
self.detailList = List([], enableWrapAround = True)
self.detailConfigList = ConfigList([])
self.detailConfigList.l.setSeperation( (BrowserMenu.width - 210) / 2 )
config.plugins.WebBrowser.storage.enabled.addNotifier(self.__cfgExpandableElementChanged, initial_call = False)
config.plugins.WebBrowser.storage.enabled.addNotifier(self.__cfgStoragePathChanged, initial_call = False)
config.plugins.WebBrowser.storage.path.addNotifier(self.__cfgStoragePathChanged, initial_call = False)
self.detailInput = EnhancedInput()
self["list"] = self.detailList
self["config"] = self.detailConfigList
self["input"] = self.detailInput
self["line"] = CanvasSource()
self.__cfgCreateSetup()