diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-18 11:30:42 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-18 11:30:42 +0000 |
| commit | bfafeaf8008f0eb3d5fbe97ed736722660a80593 (patch) | |
| tree | 958f9ffc1fee73281f752deed28a054a583d7147 /lib/python/Components/Lcd.py | |
| parent | d0cdfb806e7c602e610f1b529640ad9508a83d7e (diff) | |
| download | enigma2-bfafeaf8008f0eb3d5fbe97ed736722660a80593.tar.gz enigma2-bfafeaf8008f0eb3d5fbe97ed736722660a80593.zip | |
fix non working fix
Diffstat (limited to 'lib/python/Components/Lcd.py')
| -rw-r--r-- | lib/python/Components/Lcd.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index 57097692..0471843c 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -31,6 +31,7 @@ class LCD: def InitLcd(): detected = eDBoxLCD.getInstance().detected() SystemInfo["Display"] = detected + config.lcd = ConfigSubsection(); if detected: def setLCDbright(configElement): ilcd.setBright(configElement.value); @@ -43,8 +44,6 @@ def InitLcd(): ilcd = LCD() - config.lcd = ConfigSubsection(); - config.lcd.bright = ConfigSlider(default=10, limits=(0, 10)) config.lcd.bright.addNotifier(setLCDbright); config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright) @@ -61,5 +60,10 @@ def InitLcd(): config.lcd.invert = ConfigYesNo(default=False) config.lcd.invert.addNotifier(setLCDinverted); else: - config.lcd.bright.apply = lambda : pass - config.lcd.standby.apply = lambda : pass + def doNothing(): + pass + config.lcd.contrast = ConfigNothing() + config.lcd.bright = ConfigNothing() + config.lcd.standby = ConfigNothing() + config.lcd.bright.apply = lambda : doNothing() + config.lcd.standby.apply = lambda : doNothing() |
