aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-16 01:34:08 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-16 01:34:08 +0000
commit51604ca314a1b2fd33e160dd60b698071754408c (patch)
tree94c78d160ac9fa338ca4654c28d6c2114c409833 /lib/python/Components
parentc7b9645a6f9d7d38c99df19e2ce2bbfaf9e3fa99 (diff)
downloadenigma2-51604ca314a1b2fd33e160dd60b698071754408c.tar.gz
enigma2-51604ca314a1b2fd33e160dd60b698071754408c.zip
add configelement and config class
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py15
1 files changed, 15 insertions, 0 deletions
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);