summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-04 09:24:26 +0000
committerMatt Wilson <msw@redhat.com>1999-08-04 09:24:26 +0000
commit6ef2cb1ea395c7e9fa5bdfe8fe0d7c169a8d8790 (patch)
treef2e4daf8e6930b12d74fcf2d4aeed832427cd09b /text.py
parent3d7505f2dd7c5732a7efff3f9a7e3976dad37061 (diff)
downloadanaconda-6ef2cb1ea395c7e9fa5bdfe8fe0d7c169a8d8790.tar.gz
anaconda-6ef2cb1ea395c7e9fa5bdfe8fe0d7c169a8d8790.tar.xz
anaconda-6ef2cb1ea395c7e9fa5bdfe8fe0d7c169a8d8790.zip
keyboard selection dialog
Diffstat (limited to 'text.py')
-rw-r--r--text.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/text.py b/text.py
index 5b237d155..3fa627f1a 100644
--- a/text.py
+++ b/text.py
@@ -34,6 +34,23 @@ class LanguageWindow:
todo.language.set (languages.keys()[choice])
return INSTALL_OK
+class KeyboardWindow:
+ def run(self, screen, todo):
+ keyboards = todo.keyboard.available ()
+ keyboards.sort ()
+ current = todo.keyboard.get ()
+
+ (button, choice) = \
+ ListboxChoiceWindow(screen, _("Keyboard Selection"),
+ _("Which model keyboard is attached to this computer?"), keyboards,
+ buttons = [_("Ok"), _("Back")], width = 30, scroll = 1, height = 8)
+
+ if button == string.lower (_("Back")):
+ return INSTALL_BACK
+ todo.keyboard.set (keyboards[choice])
+ return INSTALL_OK
+
+
class RootPasswordWindow:
def run(self, screen, todo):
toplevel = GridForm (screen, _("Root Password"), 1, 3)
@@ -323,7 +340,7 @@ class IndividualPackageWindow:
return INSTALL_OK
-class MouseConfigWindow:
+class MouseWindow:
def run(self, screen, todo):
mice = todo.mouse.available ()
mice.sort ()
@@ -548,12 +565,13 @@ class InstallInterface:
individual = Flag(0)
steps = [
[_("Language Selection"), LanguageWindow, (self.screen, todo)],
+ [_("Keyboard Selection"), KeyboardWindow, (self.screen, todo)],
[_("Welcome"), WelcomeWindow, (self.screen,)],
[_("Partition"), PartitionWindow, (self.screen, todo)],
[_("Network Setup"), NetworkWindow, (self.screen, todo)],
[_("Package Groups"), PackageGroupWindow, (self.screen, todo, individual)],
[_("Individual Packages"), IndividualPackageWindow, (self.screen, todo, individual)],
- [_("Mouse Configuration"), MouseConfigWindow, (self.screen, todo)],
+ [_("Mouse Configuration"), MouseWindow, (self.screen, todo)],
[_("Root Password"), RootPasswordWindow, (self.screen, todo)],
[_("Installation Begins"), BeginInstallWindow, (self.screen, todo)],
]