3 def __init__(self, parent):
5 self.val = parent.value
6 self.vals = parent.vals
8 def handleKey(self, key):
10 self.val = self.val - 1
12 self.val = self.val + 1
20 def __call__(self): #needed by configlist
25 if(self.val > (len(self.vals) - 1)):
26 self.val = len(self.vals) - 1
28 return ("text",self.vals[self.val])
31 def __init__(self, obj):
38 # das hier ist ein zugriff auf die registry...
39 if obj == "HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/SDTV/FLASHES/GREEN":
40 return ("SDTV green flashes", configBoolean(obj))
41 elif obj == "HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/HDTV/FLASHES/GREEN":
42 return ("HDTV reen flashes", configBoolean(obj))
44 return ("invalid", "")
53 def __init__(self, parent):
55 self.val = parent.value
56 def handleKey(self, key):
58 self.val = self.val - 1
60 self.val = self.val + 1
67 def __call__(self): #needed by configlist
68 return ("slider", self.val * 10)
70 class ConfigSubsection:
75 def __init__(self, configPath, control, defaultValue, vals):
76 self.configPath = configPath
77 # self.value = 0 #read from registry else use default
78 self.value = defaultValue #read from registry else use default
79 self.controlType = control
81 self.notifierList = [ ]
82 def addNotifier(self, notifier):
83 self.notifierList.append(notifier);