start scan on pressing ok
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 16 Oct 2005 22:37:03 +0000 (22:37 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 16 Oct 2005 22:37:03 +0000 (22:37 +0000)
lib/python/Screens/ScanSetup.py

index ad45316b90ad9266a93233d880e91b16f67793d3..71096a52d5015e0a375591b10b0a043fca6727e2 100644 (file)
@@ -1,4 +1,5 @@
 from Screen import Screen
 from Screen import Screen
+from ServiceScan import *
 from Components.config import *
 from Components.ActionMap import NumberActionMap
 from Components.ConfigList import ConfigList
 from Components.config import *
 from Components.ActionMap import NumberActionMap
 from Components.ConfigList import ConfigList
@@ -17,7 +18,7 @@ class ScanSetup(Screen):
         
         self["actions"] = NumberActionMap(["SetupActions"],
         {
         
         self["actions"] = NumberActionMap(["SetupActions"],
         {
-            "ok": self.keySave,
+            "ok": self.keyGo,
             "cancel": self.keyCancel,
             "left": self.keyLeft,
             "right": self.keyRight,
             "cancel": self.keyCancel,
             "left": self.keyLeft,
             "right": self.keyRight,
@@ -159,10 +160,12 @@ class ScanSetup(Screen):
         if (self["config"].getCurrent()[1].parent.enabled == True):
             self["config"].handleKey(config.key[str(number)])
 
         if (self["config"].getCurrent()[1].parent.enabled == True):
             self["config"].handleKey(config.key[str(number)])
 
-    def keySave(self):
+    def keyGo(self):
         for x in self["config"].list:
             x[1].save()
         for x in self["config"].list:
             x[1].save()
-        self.close()
+        self.session.openWithCallback(self.keyCancel, ServiceScan)        
+
+        #self.close()
 
     def keyCancel(self):
         for x in self["config"].list:
 
     def keyCancel(self):
         for x in self["config"].list: