Пример #1
0
def launch_shutdown_gui():
    from gi.repository import GObject, Gtk

    from kano_updater.ui.available_window import UpdateNowShutdownWindow
    from kano_updater.ui.install_window import InstallWindow

    status = UpdaterStatus.get_instance()

    if status.is_scheduled:
        GObject.threads_init()
        win = InstallWindow() if status.is_urgent else UpdateNowShutdownWindow()
        win.show()
        Gtk.main()
Пример #2
0
def launch_shutdown_gui():
    from gi.repository import GObject, Gtk

    from kano_updater.ui.available_window import UpdateNowShutdownWindow
    from kano_updater.ui.install_window import InstallWindow

    status = UpdaterStatus.get_instance()

    if status.is_scheduled:
        GObject.threads_init()
        win = InstallWindow() if status.is_urgent else UpdateNowShutdownWindow()
        win.show()
        Gtk.main()
Пример #3
0
    def _action(self):
        from kano_updater.ui.install_window import InstallWindow

        win = InstallWindow()
        win.show()