blob: 3bd0ac69da8c2be26ad6f3a62637e804d1fd2e1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
from Screen import Screen
from Components.ConfigList import ConfigList
from Components.config import config
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
})
|