add tunersetup to the startwizard (just a proof of concept as of now)
[enigma2.git] / lib / python / Screens / Satconfig.py
index 074033fa68dea022ce74f67a774bb0778173cc7d..e6033ebc15885a1b4f154bc9470205ff090b3c24 100644 (file)
@@ -65,6 +65,9 @@ class NimSetup(Screen):
                        self.createSetup()
                
        def keyLeft(self):
+               if self["config"].getCurrent()[0] == _("Configmode"):
+                       if self.nim.slotid == 0:
+                               return
                self["config"].handleKey(config.key["prevElement"])
                self.newConfig()
 
@@ -95,9 +98,13 @@ class NimSetup(Screen):
                        x[1].cancel()
                self.close()
 
-       def __init__(self, session, nim):
+       def __init__(self, session, nim = None):
                Screen.__init__(self, session)
-               self.nim = nim
+               
+               if nim == None:
+                       self.nim = nimmanager.nimList()[0][1]
+               else:
+                       self.nim = nim
                
                self["actions"] = NumberActionMap(["SetupActions"],
                {