aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode/plugin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-12-20 23:22:53 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-12-20 23:22:53 +0000
commit8e794876a901a5477427c637855965b08e2c8c6c (patch)
treef819607f0c8aad8891cc98c029744bde2e6aa2b0 /lib/python/Plugins/SystemPlugins/Videomode/plugin.py
parent4074b1576f602ba339cd8da4e856316ce372acaa (diff)
downloadenigma2-8e794876a901a5477427c637855965b08e2c8c6c.tar.gz
enigma2-8e794876a901a5477427c637855965b08e2c8c6c.zip
add LCD support
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode/plugin.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/plugin.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/plugin.py b/lib/python/Plugins/SystemPlugins/Videomode/plugin.py
index 9f974bea..5e61d67d 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/plugin.py
@@ -7,6 +7,7 @@ from Components.ActionMap import ActionMap
from Components.Label import Label
from Components.Pixmap import Pixmap
from Screens.MessageBox import MessageBox
+from Screens.Setup import SetupSummary
from Components.ConfigList import ConfigListScreen
from Components.config import getConfigListEntry, config, ConfigNothing, ConfigSelection, ConfigSubDict
@@ -160,14 +161,16 @@ class VideoSetup(Screen, ConfigListScreen):
def __init__(self, session, hw):
Screen.__init__(self, session)
self.skinName = "Setup"
+ self.setup_title = "Videomode Setup"
self.hw = hw
+ self.onChangedEntry = [ ]
# handle hotplug by re-creating setup
self.onShow.append(self.startHotplug)
self.onHide.append(self.stopHotplug)
self.list = [ ]
- ConfigListScreen.__init__(self, self.list)
+ ConfigListScreen.__init__(self, self.list, session = session, on_change = self.changedEntry)
self["actions"] = ActionMap(["SetupActions"],
{
@@ -234,6 +237,20 @@ class VideoSetup(Screen, ConfigListScreen):
else:
self.keySave()
+ # for summary:
+ def changedEntry(self):
+ for x in self.onChangedEntry:
+ x()
+
+ def getCurrentEntry(self):
+ return self["config"].getCurrent()[0]
+
+ def getCurrentValue(self):
+ return str(self["config"].getCurrent()[1].getText())
+
+ def createSummary(self):
+ return SetupSummary
+
#class VideomodeHotplug:
# def __init__(self, hw):
# self.hw = hw