本文整理汇总了Python中PyKDE4.kdeui.KApplication.closeAllWindows方法的典型用法代码示例。如果您正苦于以下问题:Python KApplication.closeAllWindows方法的具体用法?Python KApplication.closeAllWindows怎么用?Python KApplication.closeAllWindows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyKDE4.kdeui.KApplication
的用法示例。
在下文中一共展示了KApplication.closeAllWindows方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyKDE4.kdeui import KApplication [as 别名]
# 或者: from PyKDE4.kdeui.KApplication import closeAllWindows [as 别名]
#.........这里部分代码省略.........
time.sleep(0.5)
changed = self.configManager.path_removed(path)
if changed and self.configWindow is not None:
self.configWindow.config_modified()
def unpause_service(self):
"""
Unpause the expansion service (start responding to keyboard and mouse events).
"""
self.service.unpause()
self.notifier.update_tool_tip()
def pause_service(self):
"""
Pause the expansion service (stop responding to keyboard and mouse events).
"""
self.service.pause()
self.notifier.update_tool_tip()
def toggle_service(self):
"""
Convenience method for toggling the expansion service on or off.
"""
if self.service.is_running():
self.pause_service()
else:
self.unpause_service()
def shutdown(self):
"""
Shut down the entire application.
"""
logging.info("Shutting down")
self.app.closeAllWindows()
self.notifier.hide_icon()
self.service.shutdown()
self.monitor.stop()
self.app.quit()
os.remove(LOCK_FILE)
logging.debug("All shutdown tasks complete... quitting")
def notify_error(self, message):
"""
Show an error notification popup.
@param message: Message to show in the popup
"""
self.exec_in_main(self.notifier.notify_error, message)
def update_notifier_visibility(self):
self.notifier.update_visible_status()
def show_configure(self):
"""
Show the configuration window, or deiconify (un-minimise) it if it's already open.
"""
logging.info("Displaying configuration window")
try:
self.configWindow.showNormal()
self.configWindow.activateWindow()
except (AttributeError, RuntimeError):
# AttributeError when the main window is shown the first time, RuntimeError subsequently.
self.configWindow = ConfigWindow(self)
self.configWindow.show()
def show_configure_async(self):