本文整理汇总了Python中Components.ConfigList.ConfigList.isChanged方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigList.isChanged方法的具体用法?Python ConfigList.isChanged怎么用?Python ConfigList.isChanged使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.ConfigList.ConfigList
的用法示例。
在下文中一共展示了ConfigList.isChanged方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BrowserMenu
# 需要导入模块: from Components.ConfigList import ConfigList [as 别名]
# 或者: from Components.ConfigList.ConfigList import isChanged [as 别名]
#.........这里部分代码省略.........
"up" : self.detailList.selectPrevious,
"down" : self.detailList.selectNext,
"left" : self.detailList.pageUp,
"right" : self.detailList.pageDown,
"red" : self.__crtDelete,
"green" : self.__crtDetails,
},
self.MENU_COOKIES : {
"up" : self.detailList.selectPrevious,
"down" : self.detailList.selectNext,
"left" : self.detailList.pageUp,
"right" : self.detailList.pageDown,
"red" : self.__ckDelete,
"blue" : self.__ckDeleteAll,
}
}
def _close(self):
config.plugins.WebBrowser.storage.enabled.removeNotifier(self.__cfgExpandableElementChanged)
config.plugins.WebBrowser.storage.enabled.removeNotifier(self.__cfgStoragePathChanged)
config.plugins.WebBrowser.storage.path.removeNotifier(self.__cfgStoragePathChanged)
self.close(self.__actions)
def __actionOk(self):
if self["statuslabel"].visible:
self["statuslabel"].hide()
else:
self.__action("ok")
def __actionExit(self):
if self["statuslabel"].visible:
self["statuslabel"].hide()
else:
if self.detailConfigList.isChanged():
self.__cfgSave()
self._close()
def __actionMenuUp(self):
self.menu.up()
self.__onMenuChanged()
def __actionMenuDown(self):
self.menu.down()
self.__onMenuChanged()
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)