3 def __init__(self, reg):
12 return ("NO", "YES", "MAYBE")[self.val]
15 def __init__(self, obj):
22 # das hier ist ein zugriff auf die registry...
23 if obj == "HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/SDTV/FLASHES/GREEN":
24 return ("SDTV green flashes", configBoolean(obj))
25 elif obj == "HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/HDTV/FLASHES/GREEN":
26 return ("HDTV reen flashes", configBoolean(obj))
28 return ("invalid", "")
37 def __init__(self, parent):
39 self.val = parent.value
40 def handleKey(self, key):
42 self.val = self.val - 1
44 self.val = self.val + 1
52 def __call__(self): #needed by configlist
53 return ("slider", self.val * 10)
55 class ConfigSubsection:
60 def __init__(self, configPath, control, defaultValue):
61 self.configPath = configPath
62 self.value = 0 #read from registry else use default
63 self.controlType = control
64 self.notifierList = [ ]
65 def addNotifier(self, notifier):
66 self.notifierList.append(notifier);