aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ConfigMenu.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-05-05 23:38:38 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-05-05 23:38:38 +0000
commita4da9cccc2575c4bf299bde9594dad3e049ddf6a (patch)
tree3064290f3ab9cfebdcaba577dc98c610fcc78139 /lib/python/Screens/ConfigMenu.py
parent81ae5bd362286a852f0851043bfccf1c754f3152 (diff)
downloadenigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.tar.gz
enigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.zip
- split 2 (Screens)
Diffstat (limited to 'lib/python/Screens/ConfigMenu.py')
-rw-r--r--lib/python/Screens/ConfigMenu.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/python/Screens/ConfigMenu.py b/lib/python/Screens/ConfigMenu.py
new file mode 100644
index 00000000..88271759
--- /dev/null
+++ b/lib/python/Screens/ConfigMenu.py
@@ -0,0 +1,37 @@
+from Screen import Screen
+from Components.ConfigList import ConfigList
+from Components.config import *
+from Components.ActionMap import ActionMap
+
+class ConfigMenu(Screen):
+ #create a generic class for view/edit settings
+ #all stuff come from xml file
+ #configtype / datasource / validate-call / ...
+
+ def __init__(self, session):
+ Screen.__init__(self, session)
+
+ self["actions"] = ActionMap(["OkCancelActions"],
+ {
+ #"ok": self.okbuttonClick,
+ "cancel": self.close
+ })
+
+class configTest(Screen):
+
+ def __init__(self, session):
+ Screen.__init__(self, session)
+
+
+ self["config"] = ConfigList(
+ [
+ configEntry("HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/SDTV/FLASHES/GREEN"),
+ configEntry("HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/HDTV/FLASHES/GREEN"),
+ ])
+
+ self["actions"] = ActionMap(["OkCancelActions"],
+ {
+ "ok": self["config"].toggle,
+ "cancel": self.close
+ })
+