diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-09 00:34:56 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-09 00:34:56 +0000 |
| commit | 92eea9b3204d5caf7df17251f48e00d482c4a7d7 (patch) | |
| tree | babc20372902591aa8c84728e1c033c6fe21f28a /lib/python/Screens | |
| parent | f6e41e11b078600c2ccf568304b3eb3d0a556fbe (diff) | |
| download | enigma2-92eea9b3204d5caf7df17251f48e00d482c4a7d7.tar.gz enigma2-92eea9b3204d5caf7df17251f48e00d482c4a7d7.zip | |
simplify code
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/Ci.py | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index cde68c2e..c3302a1c 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -13,8 +13,6 @@ from Components.ConfigList import ConfigList from enigma import eTimer, eDVBCI_UI, eListboxPythonStringContent, eListboxPythonConfigContent -TYPE_MENU = 0 -TYPE_CONFIG = 1 MAX_NUM_CI = 4 def InitCiConfig(): @@ -40,7 +38,6 @@ class CiMmi(Screen): self["subtitle"] = Label("") self["bottom"] = Label("") self["entries"] = ConfigList([ ]) - self.listtype = TYPE_CONFIG self["actions"] = NumberActionMap(["SetupActions"], { @@ -158,22 +155,7 @@ class CiMmi(Screen): try: List.instance.moveSelectionTo(0) except: - List.l.setList(list) - return - - if self.tag and self.tag == "ENQ": - type = TYPE_CONFIG - else: - type = TYPE_MENU - - if type != self.listtype: - if type == TYPE_CONFIG: - List.l = eListboxPythonConfigContent() - else: - List.l = eListboxPythonStringContent() - List.instance.setContent(List.l) - self.listtype = type - + pass List.l.setList(list) def showWait(self): @@ -182,7 +164,7 @@ class CiMmi(Screen): self["subtitle"].setText("") self["bottom"].setText("") list = [ ] - list.append( ("wait for ci...", 0) ) + list.append( (_("wait for ci..."), ConfigNothing()) ) self.updateList(list) def showScreen(self): |
