Esempio n. 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()
Esempio n. 2
0
 def on_notify_is_active(self, window, paramspec):
     if global_settings.main_menu_mode:
         if window.is_active():
             main_menu.window_activated(self)
         else:
             main_menu.window_deactivated(self)
Esempio n. 3
0
    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()
Esempio n. 4
0
 def on_notify_is_active(self, window, paramspec):
     if global_settings.main_menu_mode:
         if window.is_active():
             main_menu.window_activated(self)
         else:
             main_menu.window_deactivated(self)