+ def __init__(self, session, slotid, action):
+ Screen.__init__(self, session)
+
+ print "ciMMI with action" + str(action)
+
+ self.slotid = slotid
+
+ self.Timer = eTimer()
+ self.Timer.timeout.get().append(self.TimerCheck)
+ self.Timer.start(1000)
+
+ #else the skins fails
+ self["title"] = Label("")
+ self["subtitle"] = Label("")
+ self["bottom"] = Label("")
+ self["entries"] = ConfigList([ ])
+ self.listtype = TYPE_CONFIG
+
+ self["actions"] = NumberActionMap(["SetupActions"],
+ {
+ "ok": self.okbuttonClick,
+ "cancel": self.keyCancel,
+ #for PIN
+ "left": self.keyLeft,
+ "right": self.keyRight,
+ "1": self.keyNumberGlobal,
+ "2": self.keyNumberGlobal,
+ "3": self.keyNumberGlobal,
+ "4": self.keyNumberGlobal,
+ "5": self.keyNumberGlobal,
+ "6": self.keyNumberGlobal,
+ "7": self.keyNumberGlobal,
+ "8": self.keyNumberGlobal,
+ "9": self.keyNumberGlobal,
+ "0": self.keyNumberGlobal
+ }, -1)
+
+ self.action = action
+
+ if action == 0: #reset
+ eDVBCI_UI.getInstance().setReset(self.slotid)
+ self.showWait()
+ elif action == 1: #init
+ eDVBCI_UI.getInstance().setInit(self.slotid)
+ elif action == 2: #start MMI
+ eDVBCI_UI.getInstance().startMMI(self.slotid)
+ self.showWait()
+ elif action == 3: #mmi already there (called from infobar)
+ self.showScreen()
+