+ # 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.choseElement)
+ def keyLeft(self):
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.prevElement)
+ def keyRight(self):
+ if (self["config"].getCurrent()[1].parent.enabled == True):
+ self["config"].handleKey(config.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()
+