1 from config import config #global config instance
3 from config import configElement
4 from config import ConfigSubsection
5 from config import ConfigSlider
6 from config import configSelection
11 def setRepeat(self, value):
12 #print "setup rc repeat"
14 def setDelay(self, value):
15 #print "setup rc delay"
18 def InitInputDevices():
19 config.inputDevices = ConfigSubsection();
20 config.inputDevices.repeat = configElement("config.inputDevices.repeat", ConfigSlider, 5, "");
21 config.inputDevices.delay = configElement("config.inputDevices.delay", ConfigSlider, 4, "");
23 #this instance anywhere else needed?
24 iDevices = inputDevices();
26 def inputDevicesRepeatChanged(configElement):
27 iDevices.setRepeat(configElement.value);
29 def inputDevicesDelayChanged(configElement):
30 iDevices.setDelay(configElement.value);
32 # this will call the "setup-val" initial
33 config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);
34 config.inputDevices.delay.addNotifier(inputDevicesDelayChanged);