summaryrefslogtreecommitdiffstats
path: root/textw/language_text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
committerChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
commit9e1a444c46abcfc29c2e44ffd102fcc1eda6289e (patch)
treefc10e993fe6c8292fbd0cb57fb6ad4135b0a8fad /textw/language_text.py
parent2d90bc12dcc682a7f0ff68e599cbb81a34a0b4a3 (diff)
downloadanaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.gz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.xz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.zip
Make all UI steps use anaconda class. Add system-config-keyboard shim.
Diffstat (limited to 'textw/language_text.py')
-rw-r--r--textw/language_text.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/textw/language_text.py b/textw/language_text.py
index 60fcde872..a4e18ed57 100644
--- a/textw/language_text.py
+++ b/textw/language_text.py
@@ -25,18 +25,18 @@ import logging
log = logging.getLogger("anaconda")
class LanguageWindow:
- def __call__(self, screen, textInterface, instLanguage):
- languages = instLanguage.available ()
+ def __call__(self, screen, anaconda):
+ languages = anaconda.id.instLanguage.available ()
languages.sort()
- current = instLanguage.getCurrent()
+ current = anaconda.id.instLanguage.getCurrent()
height = min((8, len(languages)))
buttons = [TEXT_OK_BUTTON, TEXT_BACK_BUTTON]
translated = []
for lang in languages:
- translated.append ((_(lang), instLanguage.getNickByName(lang)))
+ translated.append ((_(lang), anaconda.id.instLanguage.getNickByName(lang)))
(button, choice) = \
ListboxChoiceWindow(screen, _("Language Selection"),
_("What language would you like to use during the "
@@ -47,28 +47,28 @@ class LanguageWindow:
if button == TEXT_BACK_CHECK:
return INSTALL_BACK
- if ((instLanguage.getFontFile(choice) == "none")):
+ if ((anaconda.id.instLanguage.getFontFile(choice) == "none")):
ButtonChoiceWindow(screen, "Language Unavailable",
"%s display is unavailable in text mode. The "
"installation will continue in English." % (choice,),
buttons=[TEXT_OK_BUTTON])
- instLanguage.setRuntimeDefaults(choice)
+ anaconda.id.instLanguage.setRuntimeDefaults(choice)
return INSTALL_OK
if (flags.setupFilesystems and
- instLanguage.getFontFile(choice) == "none"
- and textInterface.isRealConsole()):
+ anaconda.id.instLanguage.getFontFile(choice) == "none"
+ and anaconda.intf.isRealConsole()):
ButtonChoiceWindow(screen, "Language Unavailable",
"%s display is unavailable in text mode. "
"The installation will continue in "
"English." % (choice,),
buttons=[TEXT_OK_BUTTON])
- instLanguage.setRuntimeDefaults(choice)
+ anaconda.id.instLanguage.setRuntimeDefaults(choice)
return INSTALL_OK
- instLanguage.setRuntimeLanguage(choice)
- instLanguage.setDefault(choice)
+ anaconda.id.instLanguage.setRuntimeLanguage(choice)
+ anaconda.id.instLanguage.setDefault(choice)
- textInterface.drawFrame()
+ anaconda.intf.drawFrame()
return INSTALL_OK