+ self["entries"].onSelectionChanged.append(self.selectionChanged)
+ self["text"] = Label(_("Slot %d")%(1))
+
+ def selectionChanged(self):
+ cur_idx = self["entries"].getCurrentIndex()
+ self["text"].setText(_("Slot %d")%((cur_idx / 4)+1))
+
+ def keyConfigEntry(self, key):
+ try:
+ self["entries"].handleKey(key)
+ self["entries"].getCurrent()[1].save()
+ except:
+ pass
+
+ def keyLeft(self):
+ self.keyConfigEntry(KEY_LEFT)
+
+ def keyRight(self):
+ self.keyConfigEntry(KEY_RIGHT)