summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-04 07:55:15 +0000
committerMatt Wilson <msw@redhat.com>1999-08-04 07:55:15 +0000
commit3d7505f2dd7c5732a7efff3f9a7e3976dad37061 (patch)
tree134bec064a4a7071595aa21f1f94e81a6f4bb8f6 /text.py
parente2906373a7416ff7b84613333c0f78e9f7d24898 (diff)
downloadanaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.tar.gz
anaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.tar.xz
anaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.zip
start of mouse dialog
Diffstat (limited to 'text.py')
-rw-r--r--text.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/text.py b/text.py
index 0417dfd0d..5b237d155 100644
--- a/text.py
+++ b/text.py
@@ -322,6 +322,25 @@ class IndividualPackageWindow:
return INSTALL_OK
+
+class MouseConfigWindow:
+ def run(self, screen, todo):
+ mice = todo.mouse.available ()
+ mice.sort ()
+ current = todo.mouse.get ()
+
+ (button, choice) = \
+ ListboxChoiceWindow(screen, _("Mouse Selection"),
+ _("Which model mouse is attached to this computer?"), mice,
+ buttons = [_("Ok"), _("Back")], width = 30, scroll = 1, height = 8)
+
+ if button == string.lower (_("Back")):
+ return INSTALL_BACK
+ todo.mouse.set (mice[choice])
+ return INSTALL_OK
+
+
+
class BeginInstallWindow:
def run(self, screen, todo):
rc = ButtonChoiceWindow(screen, _("Installation to begin"),
@@ -532,9 +551,10 @@ class InstallInterface:
[_("Welcome"), WelcomeWindow, (self.screen,)],
[_("Partition"), PartitionWindow, (self.screen, todo)],
[_("Network Setup"), NetworkWindow, (self.screen, todo)],
- [_("Root Password"), RootPasswordWindow, (self.screen, todo)],
[_("Package Groups"), PackageGroupWindow, (self.screen, todo, individual)],
[_("Individual Packages"), IndividualPackageWindow, (self.screen, todo, individual)],
+ [_("Mouse Configuration"), MouseConfigWindow, (self.screen, todo)],
+ [_("Root Password"), RootPasswordWindow, (self.screen, todo)],
[_("Installation Begins"), BeginInstallWindow, (self.screen, todo)],
]