From 51604ca314a1b2fd33e160dd60b698071754408c Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Tue, 16 Aug 2005 01:34:08 +0000 Subject: add configelement and config class --- lib/python/Components/config.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/python/Components') diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 5d582abb..eacb5fe1 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -27,3 +27,18 @@ def configEntry(obj): 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); -- cgit v1.2.3