2 from Screens.Screen import Screen
3 from Components.config import config, getConfigListEntry
4 from Components.ConfigList import *
5 from Components.Label import Label
6 from Components.ActionMap import ActionMap
8 class WebIfConfigScreen(ConfigListScreen,Screen):
10 <screen position="100,100" size="550,400" title="Webinterface Setup" >
11 <widget name="config" position="0,0" size="550,360" scrollbarMode="showOnDemand" />
12 <widget name="buttonred" position="10,360" size="100,40" backgroundColor="red" valign="center" halign="center" zPosition="2" foregroundColor="white" font="Regular;18"/>
13 <widget name="buttongreen" position="120,360" size="100,40" backgroundColor="green" valign="center" halign="center" zPosition="2" foregroundColor="white" font="Regular;18"/>
15 def __init__(self, session, args = 0):
16 self.session = session
17 Screen.__init__(self, session)
19 self.list.append(getConfigListEntry(_("start Webinterface"), config.plugins.Webinterface.enable))
20 self.list.append(getConfigListEntry(_("use Authorization"), config.plugins.Webinterface.useauth))
21 self.list.append(getConfigListEntry(_("use Port"), config.plugins.Webinterface.port))
22 self.list.append(getConfigListEntry(_("enable /hdd"), config.plugins.Webinterface.includehdd))
23 self.list.append(getConfigListEntry(_("write debug-file"), config.plugins.Webinterface.debug))
24 ConfigListScreen.__init__(self, self.list)
25 self["buttonred"] = Label(_("cancel"))
26 self["buttongreen"] = Label(_("ok"))
27 self["setupActions"] = ActionMap(["SetupActions"],
32 "cancel": self.cancel,
38 for x in self["config"].list:
44 for x in self["config"].list: