aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ScanSetup.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-09 11:29:37 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-09 11:29:37 +0000
commitc08166b6d0671d136ca9c62ce9c915e426cff2f7 (patch)
tree1d77a10f647950cc2c8ac8ef37c7903caed97e53 /lib/python/Screens/ScanSetup.py
parent796ca1530ab14e7694e5569d136ca128619d8e07 (diff)
downloadenigma2-c08166b6d0671d136ca9c62ce9c915e426cff2f7.tar.gz
enigma2-c08166b6d0671d136ca9c62ce9c915e426cff2f7.zip
use step attribute to point to the next step for a listbox entry in the wizard
scanning is now possible through the wizard
Diffstat (limited to 'lib/python/Screens/ScanSetup.py')
-rw-r--r--lib/python/Screens/ScanSetup.py25
1 files changed, 21 insertions, 4 deletions
diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py
index 2f204b03..648e6e7f 100644
--- a/lib/python/Screens/ScanSetup.py
+++ b/lib/python/Screens/ScanSetup.py
@@ -301,9 +301,11 @@ class ScanSetup(Screen):
feid = config.scan.nims.value
# flags |= eComponentScan.scanSearchBAT
- self.session.openWithCallback(self.keyCancel, ServiceScan, tlist, feid, flags)
+ self.session.openWithCallback(self.doNothing, ServiceScan, tlist, feid, flags)
#self.close()
+ def doNothing(self):
+ pass
def keyCancel(self):
for x in self["config"].list:
@@ -312,7 +314,7 @@ class ScanSetup(Screen):
class ScanSimple(Screen):
- def keyOK(self):
+ def run(self):
print "start scan for sats:"
tlist = [ ]
for x in self.list:
@@ -321,8 +323,23 @@ class ScanSimple(Screen):
getInitialTransponderList(tlist, x[1].parent.configPath)
feid = 0 # FIXME
- self.session.openWithCallback(self.keyCancel, ServiceScan, tlist, feid, eComponentScan.scanNetworkSearch)
+ self.session.openWithCallback(self.doNothing, ServiceScan, tlist, feid, eComponentScan.scanNetworkSearch)
+
+ def keyGo(self):
+ print "start scan for sats:"
+ tlist = [ ]
+ for x in self.list:
+ if x[1].parent.value == 0:
+ print " " + str(x[1].parent.configPath)
+ getInitialTransponderList(tlist, x[1].parent.configPath)
+
+ feid = 0 # FIXME
+ self.session.openWithCallback(self.doNothing, ServiceScan, tlist, feid, eComponentScan.scanNetworkSearch)
+
+ def doNothing(self):
+ pass
+
def keyCancel(self):
self.close()
@@ -343,7 +360,7 @@ class ScanSimple(Screen):
self["actions"] = ActionMap(["SetupActions"],
{
- "ok": self.keyOK,
+ "ok": self.keyGo,
"cancel": self.keyCancel,
"left": self.keyLeft,
"right": self.keyRight,