2 from Screens.Screen import Screen
3 from Components.ConfigList import ConfigListScreen
6 from Screens.Setup import SetupSummary
9 from Components.ActionMap import ActionMap
12 from Components.config import config, getConfigListEntry
14 class StartupToStandbyConfiguration(Screen, ConfigListScreen):
15 """Configuration of Startup To Standby"""
17 skin = """<screen name="StartupToStandbyConfiguration" title="Configure StartupToStandby" position="75,155" size="565,280">
18 <widget name="config" position="5,5" size="555,100" scrollbarMode="showOnDemand" />
21 def __init__(self, session):
22 Screen.__init__(self, session)
25 self.setup_title = "StartupToStandby Configuration"
26 self.onChangedEntry = []
29 self["actions"] = ActionMap(["SetupActions"],
31 "cancel": self.keySave,
35 ConfigListScreen.__init__(
37 [getConfigListEntry(_("Enabled"), config.plugins.startuptostandby.enabled)],
39 on_change = self.changed
46 for x in self.onChangedEntry:
52 def getCurrentEntry(self):
53 return self["config"].getCurrent()[0]
55 def getCurrentValue(self):
56 return str(self["config"].getCurrent()[1].getText())
58 def createSummary(self):