From e5c978e7b1a76e5439165124d3c08aa0e4e0e630 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 29 May 2007 13:17:07 +0000 Subject: [PATCH] show current visible cislot number --- data/skin_default.xml | 5 +++-- lib/python/Screens/Ci.py | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/data/skin_default.xml b/data/skin_default.xml index d8077d4b..ecf70936 100644 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -104,8 +104,9 @@ - - + + + 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: -- 2.30.2