From e5c978e7b1a76e5439165124d3c08aa0e4e0e630 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 29 May 2007 13:17:07 +0000 Subject: show current visible cislot number --- lib/python/Screens/Ci.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/python') diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index 09083f4e..881ad10d 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -273,6 +273,12 @@ class CiSelection(Screen): menuList.list = self.list menuList.l.setList(self.list) self["entries"] = menuList + 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: -- cgit v1.2.3