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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1807 - (show annotations) (download) (as text)
Sun Mar 18 19:54:31 2007 UTC (8 years, 1 month ago) by agaffney
File MIME type: text/x-python
File size: 1053 byte(s)
bypass exit button checks if install finished/failed
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 from GLIScreen import *
8
9 class Panel(GLIScreen):
10
11 _helptext = """
12 <b><u>Install Complete!</u></b>
13
14 Your install has finished. Click the Exit button, restart your computer, \
15 and enjoy!
16 """
17
18 def __init__(self, controller):
19 GLIScreen.__init__(self, controller)
20 vert = gtk.VBox(False, 0)
21 vert.set_border_width(10)
22
23 self.controller.install_done = True
24
25 hbox = gtk.HBox(False, 0)
26 label = gtk.Label()
27 label_markup = '<b>Your install is complete!</b>'
28 label.set_markup(label_markup)
29 label.set_line_wrap(True)
30 hbox.pack_start(label, expand=False, fill=False, padding=5)
31 vert.pack_start(hbox, expand=False, fill=False, padding=10)
32
33 self.add_content(vert)
34
35 def activate(self):
36 self.controller.SHOW_BUTTON_BACK = False
37 self.controller.SHOW_BUTTON_FORWARD = False

Properties

Name Value
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.20