+ # the first b is the item itself, ignored by the configList.
+ # the second one is converted to string.
+ list.append( (ItemText, item) )
+
+ def keyOk(self):
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.key["choseElement"])
+ def keyLeft(self):
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.key["prevElement"])
+ def keyRight(self):
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.key["nextElement"])
+
+ def keySave(self):
+ print "save requested"
+ for x in self["config"].list:
+ x[1].save()
+ self.close()
+
+ def keyCancel(self):
+ print "cancel requested"
+ for x in self["config"].list:
+ x[1].cancel()
+ self.close()
+
+ def keyNumberGlobal(self, number):
+ print "You pressed number " + str(number)
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.key[str(number)])
+
+