- add positioner plugin (just basic gui atm)
[enigma2.git] / lib / python / Components / Lcd.py
index 7d5ac2830e79baa65c8f0cd6f227cae937ac28ff..ea0c37a1d99c5de8cfbf45033a1257acab995602 100644 (file)
@@ -1,5 +1,5 @@
 from config import config                              #global config instance
-from config import ConfigSlider
+from config import configSlider
 from config import configSelection
 from config import ConfigSubsection
 from config import configElement
@@ -19,15 +19,16 @@ class LCD:
                pass
 
        def setInverted(self, value):
+               if value:
+                       value = 255
                eDBoxLCD.getInstance().setInverted(value)
-               pass
 
 def InitLcd():
        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, ("Disable", "Enable") );
+       config.lcd.bright = configElement("config.lcd.bright", configSlider, 10, (1, 10))
+       config.lcd.contrast = configElement("config.lcd.contrast", configSlider, 10, (1, 10))
+       config.lcd.standby = configElement("config.lcd.standby", configSlider, 0, (1,10))
+       config.lcd.invert = configElement("config.lcd.invert", configSelection, 0, (("disable", _("Disable")), ("enable", _("Enable"))))
 
        ilcd = LCD()
 
@@ -44,4 +45,5 @@ def InitLcd():
        config.lcd.contrast.addNotifier(setLCDcontrast);
        config.lcd.invert.addNotifier(setLCDinverted);
        
-       
\ No newline at end of file
+
+