summaryrefslogtreecommitdiffstats
path: root/iw/welcome_gui.py
blob: ddcb5de10784c75bb18311f3cf59399b4cdacd06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# welcome_gui.py: gui welcome screen.
#
# Copyright 2000-2002 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
#
# You should have received a copy of the GNU Library Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

import gtk
from iw_gui import *
from rhpl.translate import _, N_

class WelcomeWindow (InstallWindow):		

    windowTitle = "" #N_("Welcome")
    htmlTag = "wel"

    def __init__ (self, ics):
	InstallWindow.__init__ (self, ics)
        ics.setGrabNext (1)

    # WelcomeWindow tag="wel"
    def getScreen (self, configFileData):
        frame = gtk.Frame ()
        frame.set_shadow_type (gtk.SHADOW_NONE)

        image = configFileData["WelcomeScreen"]
        pix = self.ics.readPixmapDithered(image)
        
        if pix:
            box = gtk.EventBox ()
#            box.modify_bg(gtk.STATE_NORMAL, box.get_style ().white)
            box.add (pix)
            frame.add (box)

        return frame