add c++ call
[enigma2.git] / lib / python / Components / AVSwitch.py
index b42d74c2b93a3c68d6e50bccc19205c1ded2e431..fea27a655f0bc32b38a94e1be7e27b085629d433 100644 (file)
@@ -1,13 +1,14 @@
 from config import *
 import os
+from enigma import *
 
 class AVSwitch:
        def __init__(self):
                pass
 
        def setColorFormat(self, value):
-               print "colorformat:" + str(value)
-               os.system("scart " + str(value))
+               #print "colorformat:" + str(value)
+               eAVSwitch.getInstance().setColorFormat(value)
                
        def setAspectRatio(self, value):
                print "aspectratio:" + str(value)
@@ -44,7 +45,3 @@ def InitAVSwitch():
        config.av.tvsystem.addNotifier(setSystem);
        config.av.wss.addNotifier(setWSS);
 
-
-       config.save()
-       
-