aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-23 20:12:12 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-23 20:12:12 +0000
commit60c335d6a15c3c6e417833bac39273bae4fc89f7 (patch)
treefc89ecfd28573d4b440f3fe1ac3c8d797390621b /lib/python/Screens
parent64ed51be43cd9fde5167a12081d112cf3d2a2a85 (diff)
downloadenigma2-60c335d6a15c3c6e417833bac39273bae4fc89f7.tar.gz
enigma2-60c335d6a15c3c6e417833bac39273bae4fc89f7.zip
add LanguageWizard to adapt to the wizard design of the start wizard
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/LanguageSelection.py30
-rw-r--r--lib/python/Screens/StartWizard.py4
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)