X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FLcd.py;h=c14a8f8688dc031418f40965f850dfe94da64b48;hb=97a9b81eac4b871c65ff24097565194e0b024ee3;hp=7d5ac2830e79baa65c8f0cd6f227cae937ac28ff;hpb=ebb18fe31efe7c97288f815950020b3f2dd6af98;p=vuplus_dvbapp diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index 7d5ac28..c14a8f8 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -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, "") + 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() @@ -44,4 +45,5 @@ def InitLcd(): config.lcd.contrast.addNotifier(setLCDcontrast); config.lcd.invert.addNotifier(setLCDinverted); + \ No newline at end of file