diff options
author | Matt Wilson <msw@redhat.com> | 2001-10-16 20:59:15 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-10-16 20:59:15 +0000 |
commit | cc02a97cc308be0ae7d6e4ac6c605518103c6f22 (patch) | |
tree | 21376b7119090a57bc496a2731b7952fd465b0a9 /iw/congrats_gui.py | |
parent | 584b653db54b96a7721cffeba67680495e59337c (diff) | |
download | anaconda-cc02a97cc308be0ae7d6e4ac6c605518103c6f22.tar.gz anaconda-cc02a97cc308be0ae7d6e4ac6c605518103c6f22.tar.xz anaconda-cc02a97cc308be0ae7d6e4ac6c605518103c6f22.zip |
merge anaconda-gtk-2-0-branch to HEAD
Diffstat (limited to 'iw/congrats_gui.py')
-rw-r--r-- | iw/congrats_gui.py | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/iw/congrats_gui.py b/iw/congrats_gui.py index 9be3b32fc..a87d5c5c8 100644 --- a/iw/congrats_gui.py +++ b/iw/congrats_gui.py @@ -11,8 +11,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # -from gtk import * -from gnome.ui import * +import gtk from iw_gui import * from translate import _, N_ import iutil @@ -24,24 +23,24 @@ class CongratulationWindow (InstallWindow): def __init__ (self, ics): InstallWindow.__init__ (self, ics) - ics.setPrevEnabled (FALSE) + ics.setPrevEnabled (gtk.FALSE) ics.setNextButton (STOCK_PIXMAP_QUIT, _("Exit")) - ics.setHelpButtonEnabled (FALSE) - ics.setHelpEnabled(FALSE) + ics.setHelpButtonEnabled (gtk.FALSE) + ics.setHelpEnabled(gtk.FALSE) ics.setGrabNext (1) # CongratulationWindow tag=NA def getScreen (self): - self.ics.setHelpEnabled (FALSE) + self.ics.setHelpEnabled (gtk.FALSE) - hbox = GtkHBox (TRUE, 5) + hbox = gtk.HBox (gtk.TRUE, 5) pix = self.ics.readPixmap ("done.png") if pix: - a = GtkAlignment () + a = gtk.Alignment () a.add (pix) a.set (0.5, 0.5, 1.0, 1.0) - hbox.pack_start (a, FALSE) + hbox.pack_start (a, gtk.FALSE) if iutil.getArch() != "ia64": bootstr = _("If you created a boot disk to use to boot your " @@ -51,7 +50,7 @@ class CongratulationWindow (InstallWindow): bootstr = "" - label = GtkLabel( + label = gtk.Label( _("Congratulations, your Red Hat Linux installation is " "complete.\n\n" "Remove any floppy diskettes you used during the " @@ -65,11 +64,11 @@ class CongratulationWindow (InstallWindow): "at http://www.redhat.com/support/manuals.") % bootstr, ) - label.set_line_wrap (TRUE) + label.set_line_wrap (gtk.TRUE) label.set_alignment (0.0, 0.5) - box = GtkVBox (FALSE, 10) - box.pack_start (label, TRUE, TRUE, 0) + box = gtk.VBox (gtk.FALSE, 10) + box.pack_start (label, gtk.TRUE, gtk.TRUE, 0) hbox.pack_start (box) return hbox @@ -90,27 +89,27 @@ class ReconfigCongratulationWindow (InstallWindow): def getScreen (self): self.ics.setHelpEnabled (0) - hbox = GtkHBox (TRUE, 5) + hbox = gtk.HBox (gtk.TRUE, 5) pix = self.ics.readPixmap ("done.png") if pix: - a = GtkAlignment () + a = gtk.Alignment () a.add (pix) a.set (0.5, 0.5, 1.0, 1.0) - hbox.pack_start (a, FALSE) + hbox.pack_start (a, gtk.FALSE) - label = GtkLabel(_("Congratulations, configuration is complete.\n\n" + label = gtk.Label(_("Congratulations, configuration is complete.\n\n" "For information on errata (updates and bug fixes), visit " "http://www.redhat.com/errata.\n\n" "Information on using and configuring your " "system is available in the Red Hat Linux manuals " "at http://www.redhat.com/support/manuals.")) - label.set_line_wrap (TRUE) + label.set_line_wrap (gtk.TRUE) label.set_alignment (0.0, 0.5) - box = GtkVBox (FALSE, 10) - box.pack_start (label, TRUE, TRUE, 0) + box = gtk.VBox (gtk.FALSE, 10) + box.pack_start (label, gtk.TRUE, gtk.TRUE, 0) hbox.pack_start (box) return hbox |