aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Wizard.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-28 22:36:01 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-28 22:36:01 +0000
commit19197375f0a6f073ef68b4906048c84386651a7a (patch)
treeacc518b88dc93f1645f9be3cb115807a39023ab6 /lib/python/Screens/Wizard.py
parent37a96b1e3b2c6b09e7b868ed2ab0e2a5a92ba735 (diff)
downloadenigma2-19197375f0a6f073ef68b4906048c84386651a7a.tar.gz
enigma2-19197375f0a6f073ef68b4906048c84386651a7a.zip
disabling user interaction in all wizards by setting self.disableKeys to
True
Diffstat (limited to 'lib/python/Screens/Wizard.py')
-rw-r--r--lib/python/Screens/Wizard.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py
index 58697fe8..c4fcb10a 100644
--- a/lib/python/Screens/Wizard.py
+++ b/lib/python/Screens/Wizard.py
@@ -188,6 +188,8 @@ class Wizard(Screen, HelpableScreen):
self.lcdCallbacks = []
+ self.disableKeys = False
+
self["actions"] = NumberActionMap(["WizardActions", "NumberActions", "ColorActions"],
{
"ok": self.ok,
@@ -232,6 +234,8 @@ class Wizard(Screen, HelpableScreen):
self.lcdCallbacks.append(callback)
def back(self):
+ if self.disableKeys:
+ return
print "getting back..."
print "stepHistory:", self.stepHistory
if len(self.stepHistory) > 1:
@@ -291,6 +295,8 @@ class Wizard(Screen, HelpableScreen):
def ok(self):
print "OK"
+ if self.disableKeys:
+ return
currStep = self.currStep
if self.showConfig: