コード例 #1
0
    def _close_window(self, confirm_discard, wait_for_execution):
        if global_settings.main_menu_mode and self.window.is_active():
            main_menu.window_deactivated(self)

        application.window_closed(self)
        self.window.destroy()

        # Need to break the circular references back through the actions
        self.action_group = None
        self.ui_manager = None

        self.notebook.close()

        gc_at_idle()
コード例 #2
0
ファイル: base_window.py プロジェクト: johnrizzo1/reinteract
    def _close_window(self):
        if global_settings.main_menu_mode and self.window.is_active():
            main_menu.window_deactivated(self)

        application.window_closed(self)
        self.window.destroy()