summaryrefslogtreecommitdiffstats
path: root/iw/welcome.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-01-07 23:29:00 +0000
committerMike Fulbright <msf@redhat.com>2000-01-07 23:29:00 +0000
commit791a0051d2783489d5a8281a752c8458419f861b (patch)
tree20e8e8942384065fff5eb85c99a26b05abc09ed6 /iw/welcome.py
parent84ab06bd95562c03e6e86872585e5d06dd321a8d (diff)
downloadanaconda-791a0051d2783489d5a8281a752c8458419f861b.tar.gz
anaconda-791a0051d2783489d5a8281a752c8458419f861b.tar.xz
anaconda-791a0051d2783489d5a8281a752c8458419f861b.zip
(drmike) Added simple welcome screen for reconfig mode.
Diffstat (limited to 'iw/welcome.py')
-rw-r--r--iw/welcome.py71
1 files changed, 71 insertions, 0 deletions
diff --git a/iw/welcome.py b/iw/welcome.py
index a1a5aa145..aafc495f2 100644
--- a/iw/welcome.py
+++ b/iw/welcome.py
@@ -1,4 +1,5 @@
from gtk import *
+from gnome.ui import *
from iw import *
from gui import _
@@ -29,3 +30,73 @@ class WelcomeWindow (InstallWindow):
return frame
+class ReconfigWelcomeWindow (InstallWindow):
+
+ def __init__ (self, ics):
+ InstallWindow.__init__ (self, ics)
+
+ ics.setTitle (_("Welcome"))
+ ics.setNextEnabled (1)
+ ics.readHTML ("welreconfig")
+ ics.setGrabNext (1)
+ self.beingDisplayed = 0
+ self.ics = ics
+
+ def getNext (self):
+ if not self.beingDisplayed: return
+
+ if self.cancelChoice.get_active():
+ import sys
+
+ print "Exitting"
+ self.ics.ii.finishedTODO.set()
+ sys.exit(0)
+ else:
+ self.beingDisplay = 0
+ return None
+
+ def getScreen (self):
+
+ label = GtkLabel(_("Do you want to configure your system?"))
+
+ label.set_line_wrap(TRUE)
+ label.set_alignment(0.0, 0.0)
+ label.set_usize(400, -1)
+
+ box = GtkVBox (FALSE)
+ box.pack_start(label, FALSE)
+ box.set_border_width (5)
+
+ radioBox = GtkVBox (FALSE)
+ self.continueChoice = GtkRadioButton (None, _("Yes"))
+ radioBox.pack_start(self.continueChoice, FALSE)
+ self.cancelChoice = GtkRadioButton(
+ self.continueChoice, _("No"))
+ radioBox.pack_start(self.cancelChoice, FALSE)
+
+ align = GtkAlignment()
+ align.add(radioBox)
+ align.set(0.5, 0.5, 0.0, 0.0)
+
+ box.pack_start(align, TRUE, TRUE)
+ box.set_border_width (5)
+ self.beingDisplayed = 1
+ return box
+
+
+# frame = GtkFrame ()
+# frame.set_shadow_type (SHADOW_IN)
+# im = self.ics.readPixmap ("splash.png")
+#
+# if im:
+# im.render ()
+# box = GtkEventBox ()
+# pix = im.make_pixmap ()
+# style = box.get_style ().copy ()
+# style.bg[STATE_NORMAL] = style.white
+# box.set_style (style)
+# box.add (pix)
+# frame.add (box)
+#
+# return frame
+