Пример #1
0
    def __init__(self):
        Countdown.__init__(self)

        complete = Gtk.Label(_('Update complete!'))
        complete.get_style_context().add_class('H1')

        status = UpdaterStatus.get_instance()
        self._shutdown_scheduled = status.is_shutdown

        if self._shutdown_scheduled:
            finish_method = _("shutdown")
        else:
            finish_method = _("restart")

        info = Gtk.Label(_(
            "Your Kano is up to date and \n"
            "will automatically {} in 10 seconds"
            .format(finish_method))
        )
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('H2')

        instructions = Gtk.Label(_("Press ENTER to {} now".format(finish_method)))
        instructions.get_style_context().add_class('H3')
        instructions.set_margin_top(50)

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)
        self._main_grid.attach(instructions, 0, 3, 1, 1)

        self.connect('show', self._on_show)
Пример #2
0
    def __init__(self):
        Countdown.__init__(self)

        complete = Gtk.Label(_('Update complete!'))
        complete.get_style_context().add_class('complete')

        status = UpdaterStatus.get_instance()
        self._shutdown_scheduled = status.is_shutdown

        if self._shutdown_scheduled:
            finish_method = 'shutdown'
        else:
            finish_method = 'restart'

        info = Gtk.Label(_("Your Kano is up to date and \n" \
                           "will automatically {} in 10 seconds".format(finish_method)))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('countdown')

        instructions = Gtk.Label(
            _("Press ENTER to {} now".format(finish_method)))
        instructions.get_style_context().add_class('finish-now')

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)
        self._main_grid.attach(instructions, 0, 3, 1, 1)

        self.connect('show', self._on_show)
Пример #3
0
    def __init__(self, parent_pid):
        Countdown.__init__(self)

        self._parent_pid = parent_pid

        complete = Gtk.Label(_("Relaunching the Updater"))
        complete.get_style_context().add_class("complete")

        info = Gtk.Label(_("The Updater updated itself and is now " "starting again."))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class("countdown")

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)

        self.connect("map", self._on_map)
Пример #4
0
    def __init__(self, parent_pid):
        Countdown.__init__(self)

        self._parent_pid = parent_pid

        complete = Gtk.Label(_("Updater updated!"))
        complete.get_style_context().add_class('H1')

        info = Gtk.Label(_("Relaunching..."))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('H2')

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)

        self.connect('map', self._on_map)
Пример #5
0
    def __init__(self, parent_pid):
        Countdown.__init__(self)

        self._parent_pid = parent_pid

        complete = Gtk.Label(_("Updater updated!"))
        complete.get_style_context().add_class('H1')

        info = Gtk.Label(_("Relaunching..."))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('H2')

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)

        self.connect('map', self._on_map)
Пример #6
0
    def __init__(self, parent_pid):
        Countdown.__init__(self)

        self._parent_pid = parent_pid

        complete = Gtk.Label(_("Relaunching the Updater"))
        complete.get_style_context().add_class('complete')

        info = Gtk.Label(_("The Updater updated itself and is now " \
                           "starting again."))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('countdown')

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)

        self.connect('map', self._on_map)
Пример #7
0
    def __init__(self):
        Countdown.__init__(self)

        complete = Gtk.Label(_('Update complete!'))
        complete.get_style_context().add_class('complete')

        info = Gtk.Label(
            _('Your Kano is up to date and \n'
              'will automatically restart in 10 seconds'))
        info.set_justify(Gtk.Justification.CENTER)
        info.get_style_context().add_class('countdown')

        instructions = Gtk.Label(_('Press ENTER to restart now'))
        instructions.get_style_context().add_class('restart-now')

        self._main_grid.attach(complete, 0, 1, 1, 1)
        self._main_grid.attach(info, 0, 2, 1, 1)
        self._main_grid.attach(instructions, 0, 3, 1, 1)

        self.connect('show', self._on_show)