aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-01 10:32:01 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-12-01 10:32:34 +0100
commite9272c492c7a3c7fd8a1225a4baa6bee2a02eea8 (patch)
tree9ddaf002e51f6a2ec09c6e89953f34fd3b740668 /lib
parentf21e64acc0fbdbcc248fee8054d3848a5680ddc3 (diff)
downloadenigma2-e9272c492c7a3c7fd8a1225a4baa6bee2a02eea8.tar.gz
enigma2-e9272c492c7a3c7fd8a1225a4baa6bee2a02eea8.zip
Components/Lcd.py: use 1 instead of 0 for Oled standby default value (with new drivers the oled is completely disabled on lowest step)
Diffstat (limited to 'lib')
-rw-r--r--lib/python/Components/Lcd.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py
index 0e501237..7d27c097 100644
--- a/lib/python/Components/Lcd.py
+++ b/lib/python/Components/Lcd.py
@@ -42,9 +42,18 @@ def InitLcd():
def setLCDinverted(configElement):
ilcd.setInverted(configElement.value);
+ standby_default = 0
+
ilcd = LCD()
- config.lcd.standby = ConfigSlider(default=0, limits=(0, 10))
+ if not ilcd.isOled():
+ config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20))
+ config.lcd.contrast.addNotifier(setLCDcontrast);
+ else:
+ config.lcd.contrast = ConfigNothing()
+ standby_default = 1
+
+ config.lcd.standby = ConfigSlider(default=standby_default, limits=(0, 10))
config.lcd.standby.addNotifier(setLCDbright);
config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby)
@@ -53,12 +62,6 @@ def InitLcd():
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))
- config.lcd.contrast.addNotifier(setLCDcontrast);
- else:
- config.lcd.contrast = ConfigNothing()
-
config.lcd.invert = ConfigYesNo(default=False)
config.lcd.invert.addNotifier(setLCDinverted);
else: