add vcr scart switch to main menu
[enigma2.git] / lib / python / Components / AVSwitch.py
index 768b08e948cdd5d3187544043b599c54063a66b4..33ea66009c378ef32e23e2e017a1acc33e0b4335 100644 (file)
@@ -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