summaryrefslogtreecommitdiffstats
path: root/iw/confirm.py
blob: 6ebb18758ae1a6e754740982712dcd5f966074c1 (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
43
44
45
46
47
48
49
50
51
from gtk import *
from iw import *
from gui import _

class ConfirmWindow (InstallWindow):

    def __init__ (self, ics):
	InstallWindow.__init__ (self, ics)
        ics.setNextEnabled (1)
        ics.setPrevEnabled (1)
        ics.setTitle (_("About to Install"))
#        ics.setHelpEnabled (FALSE)
        ics.readHTML ("aboutinstall")

    def getScreen (self):
        hbox = GtkHBox (TRUE, 5)
        box = GtkVBox (FALSE, 5)

        im = self.ics.readPixmap ("about-to-install.png")
        if im:
            im.render ()
            pix = im.make_pixmap ()
            a = GtkAlignment ()
            a.add (pix)
            a.set (0.5, 0.5, 1.0, 1.0)
            hbox.pack_start (a, FALSE)
        
        label = GtkLabel (_("Click next to begin installation of Red Hat Linux."))
        label.set_line_wrap (TRUE)
        label.set_usize(190, -1)

        
        label2 = GtkLabel (_("A complete log of your installation will be in "
                              "/tmp/install.log after rebooting your system. You "
                              "may want to keep this file for later reference."))

        label2.set_line_wrap (TRUE)
        label2.set_usize(190, -1)
        
        box.pack_start (label, FALSE)
        box.pack_start (label2, FALSE)
        box.set_border_width (5)

        a = GtkAlignment ()
        a.add (box)
        a.set (0.5, 0.5, 0.0, 0.0)        

        hbox.pack_start (a)
        return hbox