summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0d78141)
catch a stepHistory situation
self.lcdCallbacks.append(callback)
def back(self):
self.lcdCallbacks.append(callback)
def back(self):
+ print "getting back..."
+ print "stepHistory:", self.stepHistory
if len(self.stepHistory) > 1:
self.currStep = self.stepHistory[-2]
self.stepHistory = self.stepHistory[:-2]
if self.currStep < 1:
self.currStep = 1
if len(self.stepHistory) > 1:
self.currStep = self.stepHistory[-2]
self.stepHistory = self.stepHistory[:-2]
if self.currStep < 1:
self.currStep = 1
+ print "currStep:", self.currStep
+ print "new stepHistory:", self.stepHistory
+ print "after updateValues stepHistory:", self.stepHistory
self.condition = True
exec (self.wizard[self.currStep]["condition"])
if self.condition:
self.condition = True
exec (self.wizard[self.currStep]["condition"])
if self.condition:
- self.stepHistory.append(self.currStep)
+ if len(self.stepHistory) == 0 or self.stepHistory[-1] != self.currStep:
+ self.stepHistory.append(self.currStep)
print "wizard step:", self.wizard[self.currStep]
if self.showSteps:
print "wizard step:", self.wizard[self.currStep]
if self.showSteps: