From c06f79c0451ca844f89809058a2767a1a319b137 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 30 Dec 2005 07:22:59 +0000 Subject: configSelection is now saved to config file in a human readable style --- lib/python/Components/Lcd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/python/Components/Lcd.py') diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index b9ba5606..77975f4d 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -21,15 +21,15 @@ class LCD: def setInverted(self, value): if value: value = 255 - eDBoxLCD.getInstance().setInverted(value) + eDBoxLCD.getInstance().setInverted(1 - value) 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, 0, ""); - 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() -- cgit v1.2.3