From 19197375f0a6f073ef68b4906048c84386651a7a Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 28 Apr 2008 22:36:01 +0000 Subject: disabling user interaction in all wizards by setting self.disableKeys to True --- lib/python/Screens/Wizard.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/python') 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: -- cgit v1.2.3