本文整理汇总了Python中outwiker.core.application.Application.onPageUpdate方法的典型用法代码示例。如果您正苦于以下问题:Python Application.onPageUpdate方法的具体用法?Python Application.onPageUpdate怎么用?Python Application.onPageUpdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类outwiker.core.application.Application
的用法示例。
在下文中一共展示了Application.onPageUpdate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: phrase
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPageUpdate [as 别名]
def phrase (self, phrase):
"""
Устанавливает искомую фразу
"""
self._phrase = phrase
phraseOption = StringOption (self.params, self.paramsSection, u"phrase", u"")
try:
phraseOption.value = phrase
except ReadonlyException:
# Ничего страшного, если поисковая фраза не сохранится
pass
Application.onPageUpdate (self, change=PAGE_UPDATE_CONTENT)
示例2: searchTags
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPageUpdate [as 别名]
def searchTags (self, tags):
"""
Выбрать теги для поиска
"""
self._searchTags = tags
tags_str = getTagsString (tags)
tagsOption = StringOption (self.params, self.paramsSection, u"tags", u"")
try:
tagsOption.value = tags_str
except ReadonlyException:
# Ну не сохранятся искомые теги, ничего страшного
pass
Application.onPageUpdate (self, change=PAGE_UPDATE_CONTENT)
示例3: strategy
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPageUpdate [as 别名]
def strategy (self, strategy):
if strategy == AllTagsSearchStrategy:
strategyCode = 1
else:
strategyCode = 0
self._strategy = strategy
strategyOption = IntegerOption (self.params, self.paramsSection, u"strategy", 0)
try:
strategyOption.value = strategyCode
except ReadonlyException:
# Ничего страшного
pass
Application.onPageUpdate (self, change=PAGE_UPDATE_CONTENT)