diff options
| author | Mladen Horvat <acidburn@opendreambox.org> | 2008-11-07 21:28:24 +0100 |
|---|---|---|
| committer | Mladen Horvat <acidburn@opendreambox.org> | 2008-11-07 21:28:24 +0100 |
| commit | 3b38fb5a9b457616263dff213a7a44436d75d216 (patch) | |
| tree | 2272d90f7e02d3d8a44282c6f7f69b85c4f1e757 /lib/python/Components/Lcd.py | |
| parent | 9f6d42608ec11759fd038246a2ecd888a88d8398 (diff) | |
| parent | a90424c0dc460b587898b65f6a89a564399ab551 (diff) | |
| download | enigma2-3b38fb5a9b457616263dff213a7a44436d75d216.tar.gz enigma2-3b38fb5a9b457616263dff213a7a44436d75d216.zip | |
Merge branch 'master' of git://git.opendreambox.org/git/enigma2
Diffstat (limited to 'lib/python/Components/Lcd.py')
| -rw-r--r-- | lib/python/Components/Lcd.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index 0471843c..0e501237 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -44,9 +44,14 @@ def InitLcd(): ilcd = LCD() - config.lcd.bright = ConfigSlider(default=10, limits=(0, 10)) + config.lcd.standby = ConfigSlider(default=0, limits=(0, 10)) + config.lcd.standby.addNotifier(setLCDbright); + config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby) + + config.lcd.bright = ConfigSlider(default=5, limits=(0, 10)) config.lcd.bright.addNotifier(setLCDbright); config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright) + config.lcd.bright.callNotifiersOnSaveAndCancel = True if not ilcd.isOled(): config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20)) @@ -54,9 +59,6 @@ def InitLcd(): else: config.lcd.contrast = ConfigNothing() - config.lcd.standby = ConfigSlider(default=0, limits=(0, 10)) - config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby) - config.lcd.invert = ConfigYesNo(default=False) config.lcd.invert.addNotifier(setLCDinverted); else: |
