configSelection is now saved to config file in a human readable style
[enigma2.git] / lib / python / Components / Lcd.py
index 9dc80e972a73c423db62c01bbb1044c0dc1dfcea..77975f4d18fa326f2d26d6a3be060e1aea51554e 100644 (file)
@@ -19,15 +19,17 @@ class LCD:
                pass
 
        def setInverted(self, value):
                pass
 
        def setInverted(self, value):
-               eDBoxLCD.getInstance().setInverted(value)
+               if value:
+                       value = 255
+               eDBoxLCD.getInstance().setInverted(1 - value)
                pass
 
 def InitLcd():
        config.lcd = ConfigSubsection();
                pass
 
 def InitLcd():
        config.lcd = ConfigSubsection();
-       config.lcd.bright = configElement("config.lcd.bright", ConfigSlider, 10, "");
-       config.lcd.contrast = configElement("config.lcd.contrast", ConfigSlider, 10, "");
-       config.lcd.standby = configElement("config.lcd.standby", ConfigSlider, 1, "");
-       config.lcd.invert = configElement("config.lcd.invert", configSelection, 0, ("Disable", "Enable") );
+       config.lcd.bright = configElement("config.lcd.bright", ConfigSlider, 10, "")
+       config.lcd.contrast = configElement("config.lcd.contrast", ConfigSlider, 10, "")
+       config.lcd.standby = configElement("config.lcd.standby", ConfigSlider, 0, "")
+       config.lcd.invert = configElement("config.lcd.invert", configSelection, 0, (("enable", _("Enable")), ("disable", _("Disable"))))
 
        ilcd = LCD()
 
 
        ilcd = LCD()
 
@@ -44,4 +46,5 @@ def InitLcd():
        config.lcd.contrast.addNotifier(setLCDcontrast);
        config.lcd.invert.addNotifier(setLCDinverted);
        
        config.lcd.contrast.addNotifier(setLCDcontrast);
        config.lcd.invert.addNotifier(setLCDinverted);
        
+
        
\ No newline at end of file
        
\ No newline at end of file