diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 02:00:44 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 02:00:44 +0000 |
commit | 1a0247090d0d3629a9cd150d63597f94c4f27fad (patch) | |
tree | 1508f8237c8e7fb62f187706bfc5173df8819236 /textw/welcome_text.py | |
parent | dbb4861e176cadfb14c48313fd9922d3dbfcefed (diff) | |
download | anaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.tar.gz anaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.tar.xz anaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.zip |
merge from (now defunct) anaconda-dispatch branch
Diffstat (limited to 'textw/welcome_text.py')
-rw-r--r-- | textw/welcome_text.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/textw/welcome_text.py b/textw/welcome_text.py new file mode 100644 index 000000000..7d7de72df --- /dev/null +++ b/textw/welcome_text.py @@ -0,0 +1,43 @@ +from snack import * +from constants_text import * +from translate import _ +import os + +class WelcomeWindow: + def __call__(self, screen): + rc = ButtonChoiceWindow(screen, _("Red Hat Linux"), + _("Welcome to Red Hat Linux!\n\n" + "This installation process is outlined in detail in the " + "Official Red Hat Linux Installation Guide available from " + "Red Hat Software. If you have access to this manual, you " + "should read the installation section before continuing.\n\n" + "If you have purchased Official Red Hat Linux, be sure to " + "register your purchase through our web site, " + "http://www.redhat.com/."), + buttons = [TEXT_OK_BUTTON, TEXT_BACK_BUTTON], width = 50, + help = "welcome") + + if rc == TEXT_BACK_CHECK: + return INSTALL_BACK + + return INSTALL_OK + +class ReconfigWelcomeWindow: + def __call__(self, screen): + rc = ButtonChoiceWindow(screen, _("Red Hat Linux"), + _("Welcome to the Red Hat Linux!\n\n" + "You have entered reconfiguration mode, " + "which will allow you to configure " + "site-specific options of your computer." + "\n\n" + "To exit without changing your setup " + "select the ""Cancel"" button below."), + buttons = [TEXT_OK_BUTTON, _("Cancel")], width = 50, + help = "reconfigwelcome") + + if rc == string.lower(_("Cancel")): + screen.finish() + os._exit(0) + + return INSTALL_OK + |