added lcdclock
[enigma2.git] / lib / python / Components / AVSwitch.py
index 9c5d5bbfa683c7008e7209f9be29654f6d4e89e2..8da370e3741a95b89db34b2eada9f80f158370d2 100644 (file)
@@ -1,24 +1,22 @@
 from config import *
+import os
 
 class AVSwitch:
        def __init__(self):
                pass
 
        def setColorFormat(self, value):
-               print "colorformat"
-               print value
+               print "colorformat:" + str(value)
+               os.system("scart " + str(value))
                
        def setAspectRatio(self, value):
-               print "aspectratio"
-               print value
+               print "aspectratio:" + str(value)
 
        def setSystem(self, value):
-               print "system"
-               print value
+               print "system:" + str(value)
 
        def setWSS(self, value):
-               print "wss"
-               print value
+               print "wss:" + str(value)
 
 def InitAVSwitch():
        config.av = ConfigSubsection();
@@ -44,4 +42,6 @@ def InitAVSwitch():
        config.av.colorformat.addNotifier(setColorFormat);
        config.av.aspectratio.addNotifier(setAspectRatio);
        config.av.tvsystem.addNotifier(setSystem);
-       config.av.wss.addNotifier(setWSS);
\ No newline at end of file
+       config.av.wss.addNotifier(setWSS);
+
+