diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-10-15 15:05:47 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-10-15 15:05:47 +0000 |
| commit | 96bef29b4b14fa91d6cf7ff1439d5a8b4325e149 (patch) | |
| tree | 4fca3a4c2edb9fa46a1a1eba94e1ff4bd4c9c252 /lib/python | |
| parent | d04d03175ca6e6df022b09b0b8e068355626b5dd (diff) | |
| download | enigma2-96bef29b4b14fa91d6cf7ff1439d5a8b4325e149.tar.gz enigma2-96bef29b4b14fa91d6cf7ff1439d5a8b4325e149.zip | |
added ci-selection / setup-menu screen
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Ci.py | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index e95672d6..24e20bb1 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -110,17 +110,26 @@ class CiMmi(Screen): "0": self.keyNumberGlobal }, -1) -#just for testing - we need an cimanager? (or not?) class CiSelection(Screen): def okbuttonClick(self): - #generate menu / list - list = [ ] - list.append( ("TEXT", "CA-Info") ) - list.append( ("TEXT", "Card Status") ) - list.append( ("PIN", 6, "Card Pin") ) - self.session.open(CiMmi, 0, "Wichtiges CI", "Mainmenu", "Footer", list) + + if self["entries"].getCurrent()[1] == 0: #reset + print "ci reset requested" + pass + if self["entries"].getCurrent()[1] == 1: #init + print "ci init requested" + pass + if self["entries"].getCurrent()[1] == 2: #mmi open + #ci->getInstance().mmiOpen() and wait for list of elments ??? + #generate menu / list + list = [ ] + list.append( ("TEXT", "CA-Info") ) + list.append( ("TEXT", "Card Status") ) + list.append( ("PIN", 6, "Card Pin") ) + self.session.open(CiMmi, 0, "Wichtiges CI", "Mainmenu", "Footer", list) def __init__(self, session): + #FIXME support for one ci only Screen.__init__(self, session) self["actions"] = ActionMap(["OkCancelActions"], @@ -128,3 +137,10 @@ class CiSelection(Screen): "ok": self.okbuttonClick, "cancel": self.close }) + + list = [ ] + list.append( ("Reset", 0) ) + list.append( ("Init", 1) ) + #add timer for "app-manager name" ? + list.append( ("Irdeto Blasel SE", 2) ) + self["entries"] = CiEntryList(list) |
