show event information of current selected event in channelselection
[enigma2.git] / lib / python / Components / InputDevice.py
index 164a90dad2d195e0608962d8a47a67a10c48d867..3c3bd7a1a6ee29bfa54feff09a516201d742e16e 100644 (file)
@@ -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();