diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 20:05:23 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 20:05:23 +0000 |
| commit | a2483900a9356c65bbd525e19aa40016f3b29aca (patch) | |
| tree | 2febc3e9bdce3e70b56493b881a72b4bd58615bb /lib/python | |
| parent | 9f27d1b4661ce7bc71a8fe5ecd593b9f1e481aba (diff) | |
| download | enigma2-a2483900a9356c65bbd525e19aa40016f3b29aca.tar.gz enigma2-a2483900a9356c65bbd525e19aa40016f3b29aca.zip | |
add very simple scan
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/ScanSetup.py | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index 71096a52..4eb05976 100644 --- a/lib/python/Screens/ScanSetup.py +++ b/lib/python/Screens/ScanSetup.py @@ -170,4 +170,44 @@ class ScanSetup(Screen): def keyCancel(self): for x in self["config"].list: x[1].cancel() - self.close()
\ No newline at end of file + self.close() + +class ScanSimple(Screen): + + def keyOK(self): + print "start scan for sats:" + for x in self.list: + if x[1].parent.value == 0: + print " " + str(x[1].parent.configPath) + + def keyCancel(self): + self.close() + + def keyLeft(self): + self["config"].handleKey(config.key["prevElement"]) + + def keyRight(self): + self["config"].handleKey(config.key["nextElement"]) + + def __init__(self, session): + Screen.__init__(self, session) + + self["actions"] = ActionMap(["SetupActions"], + { + "ok": self.keyOK, + "cancel": self.keyCancel, + "left": self.keyLeft, + "right": self.keyRight, + }, -1) + + self.list = [] + + SatList = nimmanager.getConfiguredSats() + + for x in SatList: + sat = configElement_nonSave(x, configSelection, 0, ("Enable", "Disable")) + self.list.append(getConfigListEntry(nimmanager.getSatDescription(x), sat)) + + self["config"] = ConfigList(self.list) + self["header"] = Label("Automatic Scan") + self["footer"] = Label("Press OK to scan") |
