show repeated timers in TimerEntryComponent
[enigma2.git] / lib / python / Components / SetupDevices.py
index a9173256922f137d3ffeb50b3ee61cc6d054d5bd..cb2badb08167103520d807e3ff63a3cf619d51e7 100644 (file)
@@ -1,23 +1,10 @@
-import os
-
+#import os
 from config import config                              #global config instance
 from config import config                              #global config instance
-
 from config import configElement
 from config import ConfigSubsection
 from config import ConfigSlider
 from config import configSelection
 from config import configElement
 from config import ConfigSubsection
 from config import ConfigSlider
 from config import configSelection
-
-#temp. class for exhibition
-
-class LCD:
-       def __init__(self):
-               pass
-
-       def setBright(self, value):
-               os.system("lcddimm " + str(value * 10))
-
-       def setContrast(self, value):
-               os.system("lcdcontrast " + str(value * 6))
+from config import configText
 
 def InitSetupDevices():
        config.timezone = ConfigSubsection();
 
 def InitSetupDevices():
        config.timezone = ConfigSubsection();
@@ -35,23 +22,6 @@ def InitSetupDevices():
        config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, "");
        config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") );
 
        config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, "");
        config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") );
 
-       config.lcd = ConfigSubsection();
-       config.lcd.bright = configElement("config.lcd.bright", ConfigSlider, 7, "");
-       config.lcd.contrast = configElement("config.lcd.contrast", ConfigSlider, 2, "");
-       config.lcd.standby = configElement("config.lcd.standby", ConfigSlider, 1, "");
-       config.lcd.invert = configElement("config.lcd.invert", configSelection, 1, ("Enable", "Disable") );
-
-       ilcd = LCD()
-
-       def setLCDbright(configElement):
-               ilcd.setBright(configElement.value);
-
-       def setLCDcontrast(configElement):
-               ilcd.setContrast(configElement.value);
-
-       config.lcd.bright.addNotifier(setLCDbright);
-       config.lcd.contrast.addNotifier(setLCDcontrast);
-
        config.parental = ConfigSubsection();
        config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") );
        config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") );
        config.parental = ConfigSubsection();
        config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") );
        config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") );