+ # 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):
+ self["config"].handleKey(0)
+ def keyLeft(self):
+ self["config"].handleKey(1)
+ def keyRight(self):
+ self["config"].handleKey(2)
+
+ 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()
+