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();
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);
+
+