本文整理汇总了Python中outwiker.core.application.Application.onPreferencesDialogClose方法的典型用法代码示例。如果您正苦于以下问题:Python Application.onPreferencesDialogClose方法的具体用法?Python Application.onPreferencesDialogClose怎么用?Python Application.onPreferencesDialogClose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类outwiker.core.application.Application
的用法示例。
在下文中一共展示了Application.onPreferencesDialogClose方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testTrayMinimize3
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPreferencesDialogClose [as 别名]
def testTrayMinimize3 (self):
self.wnd.taskBarIcon.config.minimizeToTray.value = True
self.wnd.taskBarIcon.config.alwaysShowTrayIcon.value = True
self.wnd.taskBarIcon.config.startIconized.value = False
Application.onPreferencesDialogClose(None)
#self._processEvents()
self.wnd.Show()
self.wnd.Iconize(False)
self._processEvents()
self.assertTrue (self.wnd.IsShown())
self.assertTrue (self.wnd.taskBarIcon.IsIconInstalled())
self.wnd.Iconize(True)
self._processEvents()
self.assertTrue (self.wnd.IsShown())
self.assertTrue (self.wnd.taskBarIcon.IsIconInstalled())
self.wnd.taskBarIcon.restoreWindow()
#self._processEvents()
self.assertTrue (self.wnd.IsShown())
self.assertTrue (self.wnd.taskBarIcon.IsIconInstalled())
示例2: __onOk
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPreferencesDialogClose [as 别名]
def __onOk (self, event):
try:
self.__saveAll()
except PreferencesException:
pass
Application.onPreferencesDialogClose(self)
self.EndModal (wx.ID_OK)
示例3: __onCancel
# 需要导入模块: from outwiker.core.application import Application [as 别名]
# 或者: from outwiker.core.application.Application import onPreferencesDialogClose [as 别名]
def __onCancel (self, event):
Application.onPreferencesDialogClose(self)
self.EndModal(wx.ID_CANCEL)