diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/LanguageSelection.py | 30 | ||||
| -rw-r--r-- | lib/python/Screens/StartWizard.py | 4 |
2 files changed, 31 insertions, 3 deletions
diff --git a/lib/python/Screens/LanguageSelection.py b/lib/python/Screens/LanguageSelection.py index 7d5596fd..0fe53d65 100644 --- a/lib/python/Screens/LanguageSelection.py +++ b/lib/python/Screens/LanguageSelection.py @@ -4,8 +4,12 @@ from Components.ActionMap import ActionMap from Components.Language import language from Components.config import config from Components.Sources.List import List +from Components.Label import Label +from Components.Pixmap import Pixmap -from Tools.Directories import * +from Screens.Rc import Rc + +from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE from Tools.LoadPixmap import LoadPixmap @@ -85,3 +89,27 @@ class LanguageSelection(Screen): def changed(self): self.run() self.updateList() + +class LanguageWizard(LanguageSelection, Rc): + def __init__(self, session): + LanguageSelection.__init__(self, session) + Rc.__init__(self) + self.onLayoutFinish.append(self.selectKeys) + + self["wizard"] = Pixmap() + self["text"] = Label() + self.setText() + + def selectKeys(self): + self.clearSelectedKeys() + self.selectKey("UP") + self.selectKey("DOWN") + + def changed(self): + self.run() + self.updateList() + self.setText() + + def setText(self): + self["text"].setText(_("Please use the UP and DOWN keys to select your language. Afterwards press the OK button.")) + diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index ae806ab6..aab81f63 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -7,7 +7,7 @@ from Screens.Rc import Rc from Components.Pixmap import Pixmap, MovingPixmap, MultiPixmap from Components.config import config, ConfigBoolean, configfile, ConfigSubsection -from LanguageSelection import LanguageSelection +from LanguageSelection import LanguageWizard config.misc.firstrun = ConfigBoolean(default = True) config.misc.startwizard = ConfigSubsection() @@ -28,5 +28,5 @@ class StartWizard(DefaultSatLists, Rc): config.misc.firstrun.save() configfile.save() -wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value, priority = 5) +wizardManager.registerWizard(LanguageWizard, config.misc.languageselected.value, priority = 5) wizardManager.registerWizard(StartWizard, config.misc.firstrun.value, priority = 20) |
