diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-11 22:58:36 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-11 22:58:36 +0000 |
| commit | c1311444ea249a45d0eceefa15d77fce410a54da (patch) | |
| tree | 9689ca7d8d2bf55cf5dde1d520ebe857c78dd315 /lib/python/Screens/Wizard.py | |
| parent | 142e649e1eb5f6e74f81a69bc7c7e093fb8716c9 (diff) | |
| download | enigma2-c1311444ea249a45d0eceefa15d77fce410a54da.tar.gz enigma2-c1311444ea249a45d0eceefa15d77fce410a54da.zip | |
add some translations (translations in the wizard don't work in some places)
remove every moving pixmap from the startwizard (because of flickering)
Diffstat (limited to 'lib/python/Screens/Wizard.py')
| -rw-r--r-- | lib/python/Screens/Wizard.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index e4f69290..a5726f6f 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -78,7 +78,7 @@ class Wizard(Screen, HelpableScreen): self["actions"] = NumberActionMap(["WizardActions", "NumberActions"], { "ok": self.ok, - #"cancel": self.keyCancel, + "back": self.back, "left": self.left, "right": self.right, "up": self.up, @@ -100,6 +100,12 @@ class Wizard(Screen, HelpableScreen): #"ok": (self.ok, _("Close this Screen...")), #}) + def back(self): + self.currStep -= 1 + if self.currStep < 1: + self.currStep = 1 + self.updateValues() + def ok(self): print "OK" if (self.wizard[self.currStep]["config"]["screen"] != None): @@ -171,7 +177,7 @@ class Wizard(Screen, HelpableScreen): if (len(self.wizard[self.currStep]["list"]) > 0): self["list"].instance.setZPosition(2) for x in self.wizard[self.currStep]["list"]: - self.list.append((x[0], None)) + self.list.append((_(x[0]), None)) self["list"].l.setList(self.list) self["config"].instance.setZPosition(1) |
