diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-05-29 13:17:07 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-05-29 13:17:07 +0000 |
| commit | e5c978e7b1a76e5439165124d3c08aa0e4e0e630 (patch) | |
| tree | 367b34f8f4a386bf5fcc8fe306005978d4a70c6f /lib/python | |
| parent | 5b0264e7606f9eee59586b50b5ca48599677d889 (diff) | |
| download | enigma2-e5c978e7b1a76e5439165124d3c08aa0e4e0e630.tar.gz enigma2-e5c978e7b1a76e5439165124d3c08aa0e4e0e630.zip | |
show current visible cislot number
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Ci.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: |
