diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-25 23:29:43 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-25 23:29:43 +0000 |
| commit | 389ae07e59aaf1b8e504801cd49409072f7d3b6b (patch) | |
| tree | 97d2d95ef91ea825c23c550da92a3d81b20e4076 /lib/python/Components/AVSwitch.py | |
| parent | 7843cbf34ccb5b867ae49fc9e7731247e525f81e (diff) | |
| download | enigma2-389ae07e59aaf1b8e504801cd49409072f7d3b6b.tar.gz enigma2-389ae07e59aaf1b8e504801cd49409072f7d3b6b.zip | |
add vcr scart switch to main menu
Diffstat (limited to 'lib/python/Components/AVSwitch.py')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index 768b08e9..33ea6600 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -3,6 +3,7 @@ import os from enigma import * class AVSwitch: + INPUT = { "ENCODER": 0, "SCART": 1, "AUX": 2 } def __init__(self): pass @@ -19,6 +20,9 @@ class AVSwitch: def setWSS(self, value): #print "wss:" + str(value) pass + + def setInput(self, input): + eAVSwitch.getInstance().setInput(self.INPUT[input]) def InitAVSwitch(): config.av = ConfigSubsection(); @@ -46,4 +50,5 @@ def InitAVSwitch(): config.av.aspectratio.addNotifier(setAspectRatio); config.av.tvsystem.addNotifier(setSystem); config.av.wss.addNotifier(setWSS); - + + iAVSwitch.setInput("ENCODER") # init on startup
\ No newline at end of file |
