- self.codeafter=True
- self.runCode(self.wizard[currStep]["codeafter"])
- async = self.runCode(self.wizard[currStep]["codeafter_async"])
- if self.wizard[currStep]["nextstep"] is not None:
- self.currStep = self.getStepWithID(self.wizard[currStep]["nextstep"])
- if gotoStep is not None:
- self.currStep = self.getStepWithID(gotoStep)
- if not async:
- self.currStep += 1
- self.updateValues()
- print "Now: " + str(self.currStep)
+ self.codeafterA=True
+ self.runCode(self.wizard[self.prevStep]["codeafter"])
+ if self.runCode(self.wizard[self.prevStep]["codeafter_async"]):
+ if self.updateValues in self.onShown:
+ self.onShown.remove(self.updateValues)