1
# -*- coding: utf-8 -*-
3
# File: portato/gui/gtk/splash.py
4
# This file is part of the Portato-Project, a graphical portage-frontend.
6
# Copyright (C) 2007 René 'Necoro' Neumann
7
# This is free software. You may redistribute copies of it under the terms of
8
# the GNU General Public License version 2.
9
# There is NO WARRANTY, to the extent permitted by law.
11
# Written by René 'Necoro' Neumann <necoro@necoro.net>
13
from __future__ import absolute_import
17
from gettext import lgettext as _
19
from ...constants import VERSION, APP_ICON
20
from .basic import Window
22
class SplashScreen (Window):
24
def __init__ (self, startStr = ""):
27
self.image = self.tree.get_widget("image")
28
self.genLabel = self.tree.get_widget("generalLabel")
29
self.descrLabel = self.tree.get_widget("descrLabel")
31
self.image.set_from_file(APP_ICON)
32
self.genLabel.set_label("<b><big>Portato %s ...</big></b>" % VERSION)
34
self.set_descr(startStr)
36
def set_descr (self, string):
37
self.descrLabel.set_label(_("... is starting up: %s") % string)
40
def do_iteration (self):
41
while gtk.events_pending():
45
self.window.show_all()