From 3d7505f2dd7c5732a7efff3f9a7e3976dad37061 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 4 Aug 1999 07:55:15 +0000 Subject: start of mouse dialog --- text.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'text.py') 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)], ] -- cgit