コード例 #1
0
 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
コード例 #2
0
ファイル: mainwindow.py プロジェクト: Xander982/gaphor
 def _on_window_delete(self, window, event):
     self.event_manager.handle(SessionShutdownRequested(self))
     return True