1 from Screen import Screen
2 from Components.ConfigList import ConfigList
3 from Components.config import *
4 from Components.ActionMap import ActionMap
6 class ConfigMenu(Screen):
7 #create a generic class for view/edit settings
8 #all stuff come from xml file
9 #configtype / datasource / validate-call / ...
11 def __init__(self, session):
12 Screen.__init__(self, session)
14 self["actions"] = ActionMap(["OkCancelActions"],
16 #"ok": self.okbuttonClick,
20 class configTest(Screen):
22 def __init__(self, session):
23 Screen.__init__(self, session)
26 self["config"] = ConfigList(
28 configEntry("HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/SDTV/FLASHES/GREEN"),
29 configEntry("HKEY_LOCAL_ENIGMA/IMPORTANT/USER_ANNOYING_STUFF/HDTV/FLASHES/GREEN"),
32 self["actions"] = ActionMap(["OkCancelActions"],
34 "ok": self["config"].toggle,