/[gli]/branches/overhaul/src/fe/gtk/Welcome.py
Gentoo

Contents of /branches/overhaul/src/fe/gtk/Welcome.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1623 - (show annotations) (download) (as text)
Fri Jan 19 10:19:38 2007 UTC (7 years, 11 months ago) by agaffney
File MIME type: text/x-python
File size: 3040 byte(s)
remove Help button
rearrange Stage screen
1 # Copyright 1999-2005 Gentoo Foundation
2 # This source code is distributed under the terms of version 2 of the GNU
3 # General Public License as published by the Free Software Foundation, a copy
4 # of which can be found in the main directory of this project.
5
6 import gtk
7 import GLIScreen
8 from gettext import gettext as _
9
10 class Panel(GLIScreen.GLIScreen):
11
12 title = _("Welcome to the Gentoo Linux Installer")
13 _helptext = """
14 <b><u>Welcome screen</u></b>
15
16 This screen is fairly straightforward. It welcomes you to the Installer and
17 gives you one option. The "Standard" mode is used for networked installs. It
18 allows you the most flexibility. The "Networkless" mode removes some options
19 from subsequent screens and sets a few useful defaults.
20 """
21
22 def __init__(self, controller):
23 GLIScreen.GLIScreen.__init__(self, controller)
24 vert = gtk.VBox(False, 10)
25 vert.set_border_width(10)
26
27 content_str = _("""
28 Welcome to the GTK+ front-end for the Gentoo Linux Installer.
29
30 It is highly recommended that you have gone through the manual install process a time
31 or two, or at least read through the install guide. The purpose of this installer is
32 not to make the install easier but to make it quicker. Don't ask questions that are
33 covered by the install guide, or we shall taunt you a second time.
34
35 In this part of the installer, you will make all of your decisions for how you want
36 your system setup. No changes will be made to your system until you click the
37 "Install" button. At any point before you click "Install", you can click "Save" to
38 save your install profile and come back at a later time to finish.
39
40 If you have installed Gentoo Linux previously using this installer and you saved
41 your configuration settings (install profile), you can click the "Load" button to
42 load your previous settings as defaults.""")
43
44 content_label = gtk.Label(content_str)
45 vert.pack_start(content_label, expand=False, fill=False, padding=0)
46
47 hbox = gtk.HBox(False, 0)
48 hbox.pack_start(gtk.Label("Install type:"), expand=False, fill=False, padding=10)
49 self.install_type_standard = gtk.RadioButton(label=_("Standard"))
50 hbox.pack_start(self.install_type_standard, expand=False, fill=False, padding=15)
51 self.install_type_networkless = gtk.RadioButton(group=self.install_type_standard, label=_("Networkless"))
52 hbox.pack_start(self.install_type_networkless, expand=False, fill=False, padding=0)
53 hbox2 = gtk.HBox(True, 0)
54 hbox2.pack_start(hbox, expand=False, fill=False, padding=0)
55 vert.pack_start(hbox2, expand=False, fill=False, padding=20)
56
57 self.add_content(vert)
58
59 def activate(self):
60 self.controller.SHOW_BUTTON_EXIT = True
61 # self.controller.SHOW_BUTTON_HELP = True
62 self.controller.SHOW_BUTTON_BACK = False
63 self.controller.SHOW_BUTTON_FORWARD = True
64 self.controller.SHOW_BUTTON_FINISH = False
65
66 def deactivate(self):
67 if self.install_type_standard.get_active():
68 self.controller.install_type = "standard"
69 elif self.install_type_networkless.get_active():
70 self.controller.install_type = "networkless"
71 return True

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.20