aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Lcd.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-02 23:55:37 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-02 23:55:37 +0000
commit6eeefece35e4269e02fdb7abab4f79d8e7b8f98b (patch)
tree70f4afcee82f3097e9e52a987ede8914a542b098 /lib/python/Components/Lcd.py
parentcedcadfd77539c39e928a6d5cc4fcd8d1cf48ac8 (diff)
downloadenigma2-6eeefece35e4269e02fdb7abab4f79d8e7b8f98b.tar.gz
enigma2-6eeefece35e4269e02fdb7abab4f79d8e7b8f98b.zip
config rewrite. some extensions still need to be updated.
Diffstat (limited to 'lib/python/Components/Lcd.py')
-rw-r--r--lib/python/Components/Lcd.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py
index ea0c37a1..d547a58c 100644
--- a/lib/python/Components/Lcd.py
+++ b/lib/python/Components/Lcd.py
@@ -1,10 +1,6 @@
-from config import config #global config instance
-from config import configSlider
-from config import configSelection
-from config import ConfigSubsection
-from config import configElement
+from config import config, ConfigSubsection, ConfigSlider, ConfigYesNo
-from enigma import *
+from enigma import eDBoxLCD
class LCD:
def __init__(self):
@@ -25,10 +21,10 @@ class LCD:
def InitLcd():
config.lcd = ConfigSubsection();
- config.lcd.bright = configElement("config.lcd.bright", configSlider, 10, (1, 10))
- config.lcd.contrast = configElement("config.lcd.contrast", configSlider, 10, (1, 10))
- config.lcd.standby = configElement("config.lcd.standby", configSlider, 0, (1,10))
- config.lcd.invert = configElement("config.lcd.invert", configSelection, 0, (("disable", _("Disable")), ("enable", _("Enable"))))
+ config.lcd.bright = ConfigSlider(default=10, limits=(1, 10))
+ config.lcd.contrast = ConfigSlider(default=10, limits=(1, 10))
+ config.lcd.standby = ConfigSlider(default=0, limits=(1,10))
+ config.lcd.invert = ConfigYesNo(default=False)
ilcd = LCD()
@@ -44,6 +40,3 @@ def InitLcd():
config.lcd.bright.addNotifier(setLCDbright);
config.lcd.contrast.addNotifier(setLCDcontrast);
config.lcd.invert.addNotifier(setLCDinverted);
-
-
-