本文整理汇总了Python中Components.ConfigList.ConfigList.show方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigList.show方法的具体用法?Python ConfigList.show怎么用?Python ConfigList.show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.ConfigList.ConfigList
的用法示例。
在下文中一共展示了ConfigList.show方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BrowserMenu
# 需要导入模块: from Components.ConfigList import ConfigList [as 别名]
# 或者: from Components.ConfigList.ConfigList import show [as 别名]
#.........这里部分代码省略.........
def __reloadData(self):
self.__bmList = self.__db.getBookmarks()
self.__hisList = self.__db.getHistory()
self.__crtList = self.__db.getCerts()
self.__ckList = self.__db.getCookies()
def __action(self, action):
print "[BrowserMenu].__action :: action='%s'" %action
fnc = self.__actionFuncs[self.__curMenu].get(action, None)
if fnc != None:
fnc()
def __text(self):
if self.__curMenu == self.MENU_SETTINGS:
self.__cfgKeyText()
elif self.__curMenu == self.MENU_BOOKMARKS:
pass
def __keyNumberGlobal(self, number):
if self.__curMenu == self.MENU_SETTINGS:
self.__cfgKeyNumberGlobal(number)
elif self.__curMenu == self.MENU_BOOKMARKS:
self.__bmKeyNumberGlobal(number)
elif self.__curMenu == self.MENU_HISTORY:
self.__hisKeyNumberGlobal(number)
def __onMenuChanged(self):
self.__bmFilterTimer.stop()
self.__hisFilterTimer.stop()
self.__dlRefreshTimer.stop()
self.__curMenu = self.menu.getCurrent()[1]
if self.__curMenu == self.MENU_BOOKMARKS:
self.__showMenuList(True)
self.__setButtons(_("Delete"), _("Add"), _("Edit"), _("Set as Startpage"))
self.detailList.style = "default"
self.__bmBuildList()
self.detailInput.setText(self.__bmNeedle)
elif self.__curMenu == self.MENU_HISTORY:
self.__showMenuList(True)
self.__setButtons(_("Clear"), "", "", _("Set as Startpage"))
self.detailList.style = "history"
self.__hisBuildList()
self.detailInput.setText(self.__hisNeedle)
elif self.__curMenu == self.MENU_SETTINGS:
self.__showConfigList()
self.__setButtons(_("Cancel"), _("Save"), "", "")
elif self.__curMenu == self.MENU_DOWNLOADS:
self.__showMenuList()
self.__setButtons(_("Abort"), "", "", "")
self.detailList.style = "downloads"
self.__dlBuildList()
elif self.__curMenu == self.MENU_CERTS:
self.__showMenuList()
self.__setButtons(_("Delete"), _("Details"), "", "")
self.detailList.style = "certificates"
self.__crtBuildList()
elif self.__curMenu == self.MENU_COOKIES:
self.__showMenuList()
self.__setButtons(_("Delete"), "", "", _("Delete All"))
self.detailList.style = "cookies"
self.__ckBuildList()
def __setButtons(self, red, green, yellow, blue):
self.red.setText(red)
self.__setButtonPixmapVisible(self["button_red"], red)