diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-09 02:16:46 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-09 02:16:46 +0000 |
| commit | 044fe5e29a9a4fbe50541b67efceeabe5c0d45f5 (patch) | |
| tree | 10d654135a5dbec925c12d3d3ddaecccf5b3bdd8 /lib/python/Components/SetupDevices.py | |
| parent | 0a1bf6e5feaa81232df54de00e130189f7b2a454 (diff) | |
| download | enigma2-044fe5e29a9a4fbe50541b67efceeabe5c0d45f5.tar.gz enigma2-044fe5e29a9a4fbe50541b67efceeabe5c0d45f5.zip | |
removed LCD from this collection of still not implemented stuff
Diffstat (limited to 'lib/python/Components/SetupDevices.py')
| -rw-r--r-- | lib/python/Components/SetupDevices.py | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/lib/python/Components/SetupDevices.py b/lib/python/Components/SetupDevices.py index a9173256..5ced8451 100644 --- a/lib/python/Components/SetupDevices.py +++ b/lib/python/Components/SetupDevices.py @@ -1,24 +1,10 @@ -import os - +#import os from config import config #global config instance - from config import configElement from config import ConfigSubsection from config import ConfigSlider from config import configSelection -#temp. class for exhibition - -class LCD: - def __init__(self): - pass - - def setBright(self, value): - os.system("lcddimm " + str(value * 10)) - - def setContrast(self, value): - os.system("lcdcontrast " + str(value * 6)) - def InitSetupDevices(): config.timezone = ConfigSubsection(); config.timezone.val = configElement("config.timezone.val", configSelection, 1, ("GMT", "GMT+1", "GMT+2", "GMT+3", "GMT+4", "GMT+5", "GMT+6", "GMT+7", "GMT+8", "GMT+9") ); @@ -35,23 +21,6 @@ def InitSetupDevices(): config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, ""); config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") ); - config.lcd = ConfigSubsection(); - config.lcd.bright = configElement("config.lcd.bright", ConfigSlider, 7, ""); - config.lcd.contrast = configElement("config.lcd.contrast", ConfigSlider, 2, ""); - config.lcd.standby = configElement("config.lcd.standby", ConfigSlider, 1, ""); - config.lcd.invert = configElement("config.lcd.invert", configSelection, 1, ("Enable", "Disable") ); - - ilcd = LCD() - - def setLCDbright(configElement): - ilcd.setBright(configElement.value); - - def setLCDcontrast(configElement): - ilcd.setContrast(configElement.value); - - config.lcd.bright.addNotifier(setLCDbright); - config.lcd.contrast.addNotifier(setLCDcontrast); - config.parental = ConfigSubsection(); config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") ); config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") ); |
