+ if (self.currStep == self.numSteps): # wizard finished
+ config.misc.firstrun.value = 0;
+ config.misc.firstrun.save()
+ self.session.close()
+ else:
+ self.currStep += 1
+ self.updateValues()
+
+ print "Now: " + str(self.currStep)
+
+ def keyNumberGlobal(self, number):
+ if (self.wizard[self.currStep]["config"]["screen"] != None):
+ self.configInstance.keyNumberGlobal(number)
+
+ def left(self):
+ if (self.wizard[self.currStep]["config"]["screen"] != None):
+ self.configInstance.keyLeft()
+ print "left"
+
+ def right(self):
+ if (self.wizard[self.currStep]["config"]["screen"] != None):
+ self.configInstance.keyRight()
+ print "right"
+
+ def up(self):
+ if (self.wizard[self.currStep]["config"]["screen"] != None):
+ self["config"].instance.moveSelection(self["config"].instance.moveUp)
+ elif (len(self.wizard[self.currStep]["list"]) > 0):
+ self["list"].instance.moveSelection(self["config"].instance.moveUp)
+ print "up"
+
+ def down(self):
+ if (self.wizard[self.currStep]["config"]["screen"] != None):
+ self["config"].instance.moveSelection(self["config"].instance.moveDown)
+ elif (len(self.wizard[self.currStep]["list"]) > 0):
+ self["list"].instance.moveSelection(self["config"].instance.moveDown)
+ print "down"
+