diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 07:22:59 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 07:22:59 +0000 |
| commit | c06f79c0451ca844f89809058a2767a1a319b137 (patch) | |
| tree | 1322a73a1b1412cec49bc86ccc20b3c6dbaa695a /lib/python/Components/Lcd.py | |
| parent | 21ad640445f0812c5fa954015a3389e4824dc5e1 (diff) | |
| download | enigma2-c06f79c0451ca844f89809058a2767a1a319b137.tar.gz enigma2-c06f79c0451ca844f89809058a2767a1a319b137.zip | |
configSelection is now saved to config file in a human readable style
Diffstat (limited to 'lib/python/Components/Lcd.py')
| -rw-r--r-- | lib/python/Components/Lcd.py | 10 |
1 files changed, 5 insertions, 5 deletions
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() |
