diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-08-16 01:33:40 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-08-16 01:33:40 +0000 |
| commit | c7b9645a6f9d7d38c99df19e2ce2bbfaf9e3fa99 (patch) | |
| tree | 5699448ec4d9b7242dd3ee3b45b5166eadcbc564 /lib | |
| parent | fe813cde98c0c550137b47dd7a75ec2d4d9e6f34 (diff) | |
| download | enigma2-c7b9645a6f9d7d38c99df19e2ce2bbfaf9e3fa99.tar.gz enigma2-c7b9645a6f9d7d38c99df19e2ce2bbfaf9e3fa99.zip | |
start of inputdevice controls
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/InputDevice.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/python/Components/InputDevice.py b/lib/python/Components/InputDevice.py new file mode 100644 index 00000000..1c2598d2 --- /dev/null +++ b/lib/python/Components/InputDevice.py @@ -0,0 +1,27 @@ +from config import configElement +from config import config + +class inputDevices: + def __init__(self): + pass + def setRepeat(self, value): + pass + def setDelay(self, value): + pass + +def InitInputDevices(): + config.inputDevices = config; + config.inputDevices.repeat = configElement("config.inputDevices.repeat", config.Slider, 10); + config.inputDevices.delay = configElement("config.inputDevices.delay", config.Slider, 10); + + def inputDevicesRepeatChanged(configElement): + print "setup rc repeat" + #inputDevices.setRepeat(configElement.value); + + def inputDevicesDelayChanged(configElement): + print "setup rc delay" + #inputDevices.setDelay(configElement.value); + + # this will call the "setup-val" initial + config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged); + config.inputDevices.delay.addNotifier(inputDevicesDelayChanged); |
