diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-05-05 23:38:38 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-05-05 23:38:38 +0000 |
| commit | a4da9cccc2575c4bf299bde9594dad3e049ddf6a (patch) | |
| tree | 3064290f3ab9cfebdcaba577dc98c610fcc78139 /lib/python/Screens/ConfigMenu.py | |
| parent | 81ae5bd362286a852f0851043bfccf1c754f3152 (diff) | |
| download | enigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.tar.gz enigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.zip | |
- split 2 (Screens)
Diffstat (limited to 'lib/python/Screens/ConfigMenu.py')
| -rw-r--r-- | lib/python/Screens/ConfigMenu.py | 37 |
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 + }) + |
