diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-10 10:18:28 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-10 10:18:28 +0100 |
| commit | 4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c (patch) | |
| tree | 1ae11748c8a14720c98fb666ffaf8615fd5ff038 /lib/python/Components/Lcd.py | |
| parent | acbad24424304473f967b678bd9deb51f73acf27 (diff) | |
| parent | 752d9da39e993387fefbd9ccbf39e5cb8f85735e (diff) | |
| download | enigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.tar.gz enigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.zip | |
Merge branch 'master' of fraxinas@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: |
