diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-04 07:55:15 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-04 07:55:15 +0000 |
commit | 3d7505f2dd7c5732a7efff3f9a7e3976dad37061 (patch) | |
tree | 134bec064a4a7071595aa21f1f94e81a6f4bb8f6 /text.py | |
parent | e2906373a7416ff7b84613333c0f78e9f7d24898 (diff) | |
download | anaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.tar.gz anaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.tar.xz anaconda-3d7505f2dd7c5732a7efff3f9a7e3976dad37061.zip |
start of mouse dialog
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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)], ] |