def quit(self): """ The user's application Quit command. """ for session in list(self.sessions): self.active_session = session event_manager = session.get_service("event_manager") event_manager.handle(SessionShutdownRequested(self)) if self.active_session == session: logger.info("Window not closed, abort quit operation") return
def _on_window_delete(self, window, event): self.event_manager.handle(SessionShutdownRequested(self)) return True