class NimSetup(Screen):
def createSimpleSetup(self, nim, list, mode):
-
if mode == 0: #single Sat
list.append(getConfigListEntry("Satellite", config.Nims[nim.slotid].diseqcA))
else: # > 1 Sats
list.append(getConfigListEntry("Port A", config.Nims[nim.slotid].diseqcA))
-
+
if mode >= 1: # > 1 Sats
list.append(getConfigListEntry("Port B", config.Nims[nim.slotid].diseqcB))
if mode >= 3: # > 2 Sats
self.newConfig()
def keyRight(self):
- self["config"].handleKey(config.key["nextElement"])
+ #forbid to enable advanced mode until its ready
+ if self["config"].getCurrent()[0] != "Configmode":
+ self["config"].handleKey(config.key["nextElement"])
self.newConfig()
def keyNumberGlobal(self, number):
def __init__(self, session, nim):
Screen.__init__(self, session)
self.nim = nim
-
+
self["actions"] = NumberActionMap(["SetupActions"],
{
"ok": self.keySave,
"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
+ "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.list = [ ]