X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/01b94f4679c691fe89bd7340cf2fb87a5d2b1e0c..7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7:/lib/python/Components/InputDevice.py?ds=sidebyside diff --git a/lib/python/Components/InputDevice.py b/lib/python/Components/InputDevice.py index 164a90da..3c3bd7a1 100644 --- a/lib/python/Components/InputDevice.py +++ b/lib/python/Components/InputDevice.py @@ -1,21 +1,19 @@ -from config import configElement -from config import config #global config instance -from config import ConfigSubsection +from config import config, ConfigSlider, ConfigSubsection class inputDevices: def __init__(self): pass def setRepeat(self, value): - print "setup rc repeat" + #print "setup rc repeat" pass def setDelay(self, value): - print "setup rc delay" + #print "setup rc delay" pass def InitInputDevices(): - config.inputDevices = ConfigSubsection; - config.inputDevices.repeat = configElement("config.inputDevices.repeat", config.Slider, 10); - config.inputDevices.delay = configElement("config.inputDevices.delay", config.Slider, 10); + config.inputDevices = ConfigSubsection(); + config.inputDevices.repeat = ConfigSlider(default=5, limits=(1, 10)) + config.inputDevices.delay = ConfigSlider(default=4, limits=(1, 10)) #this instance anywhere else needed? iDevices = inputDevices();