add configelement and config class
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 16 Aug 2005 01:34:08 +0000 (01:34 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 16 Aug 2005 01:34:08 +0000 (01:34 +0000)
lib/python/Components/config.py

index 5d582ab..eacb5fe 100644 (file)
@@ -27,3 +27,18 @@ def configEntry(obj):
        else:
                return ("invalid", "")
 
        else:
                return ("invalid", "")
 
+class config:
+       def __init__(self):
+               pass
+       def Slider(self):                # ok???
+               pass    
+
+class configElement:
+       def __init__(self, configPath, control, defaultValue):
+               self.configPath = configPath
+               self.value = 0  #read from registry else use default
+               self.controlType = control
+               self.notifierList = [ ]
+       def addNotifier(self, notifier):
+               self.notifierList.append(notifier);
+               notifier(self);