summaryrefslogtreecommitdiffstats
path: root/textw/mouse_text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-20 02:00:44 +0000
committerErik Troan <ewt@redhat.com>2001-06-20 02:00:44 +0000
commit1a0247090d0d3629a9cd150d63597f94c4f27fad (patch)
tree1508f8237c8e7fb62f187706bfc5173df8819236 /textw/mouse_text.py
parentdbb4861e176cadfb14c48313fd9922d3dbfcefed (diff)
downloadanaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.tar.gz
anaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.tar.xz
anaconda-1a0247090d0d3629a9cd150d63597f94c4f27fad.zip
merge from (now defunct) anaconda-dispatch branch
Diffstat (limited to 'textw/mouse_text.py')
-rw-r--r--textw/mouse_text.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/textw/mouse_text.py b/textw/mouse_text.py
index fa804f5fe..4e4f36a2f 100644
--- a/textw/mouse_text.py
+++ b/textw/mouse_text.py
@@ -24,8 +24,9 @@ class MouseDeviceWindow:
(button, result) = ListboxChoiceWindow(screen, _("Device"),
_("What device is your mouse located on?"), l,
- [ _("Ok"), _("Back") ], help = "mousedevice", default = default )
- if (button == string.lower(_("Back"))): return INSTALL_BACK
+ [ TEXT_OK_BUTTON, TEXT_BACK_BUTTON ], help = "mousedevice", default = default )
+ if button == TEXT_BACK_CHECK:
+ return INSTALL_BACK
mouse.setDevice(choices[l[result]])
@@ -52,7 +53,7 @@ class MouseWindow:
return INSTALL_NOOP
default = mice.index (default)
- bb = ButtonBar(screen, [_("OK"), _("Back")])
+ bb = ButtonBar(screen, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON])
t = TextboxReflowed(40,
_("Which model mouse is attached to this computer?"))
l = Listbox(8, scroll = 1, returnExit = 0)
@@ -78,7 +79,7 @@ class MouseWindow:
button = bb.buttonPressed(rc)
- if button == string.lower (_("Back")):
+ if button == TEXT_BACK_CHECK:
return INSTALL_BACK
choice = l.current()