self.lcdCallbacks = []
+ self.disableKeys = False
+
self["actions"] = NumberActionMap(["WizardActions", "NumberActions", "ColorActions"],
{
"ok": self.ok,
self.lcdCallbacks.append(callback)
def back(self):
+ if self.disableKeys:
+ return
print "getting back..."
print "stepHistory:", self.stepHistory
if len(self.stepHistory) > 1:
def ok(self):
print "OK"
+ if self.disableKeys:
+ return
currStep = self.currStep
if self.showConfig:
def updateValues(self):
print "Updating values in step " + str(self.currStep)
+ # calling a step which doesn't exist can only happen if the condition in the last step is not fulfilled
+ # if a non-existing step is called, end the wizard
+ if self.currStep > len(self.wizard):
+ self.markDone()
+ self.close()
+ return
+
self.timeoutTimer.stop()
if self.configInstance is not None: