From 9b1a6555d346900d5255acd651902ce79b9c0951 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 24 Sep 2007 00:52:49 +0000 Subject: use StaticText for MenuTitle to simplify summary code. this needs a skin change for menu-based screens, please also apply to your skins. --- lib/python/Screens/Menu.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/python') diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index f9b77b93..6ea0f647 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -1,10 +1,8 @@ from Screen import Screen from Components.Sources.List import List from Components.ActionMap import ActionMap -from Components.Header import Header -from Components.Label import Label +from Components.Sources.StaticText import StaticText from Components.config import configfile -from Components.Sources.Clock import Clock from Components.PluginComponent import plugins from Tools.Directories import resolveFilename, SCOPE_SKIN @@ -56,7 +54,7 @@ menuupdater = MenuUpdater() class MenuSummary(Screen): skin = """ - + @@ -67,7 +65,6 @@ class MenuSummary(Screen): def __init__(self, session, parent): Screen.__init__(self, session, parent) - self["MenuTitle"] = Label(parent.menu_title) class Menu(Screen): @@ -211,7 +208,7 @@ class Menu(Screen): a = parent.getAttribute("title").encode("UTF-8") or None if a is None: a = _(parent.getAttribute("text").encode("UTF-8")) - self["title"] = Header(a) + self["title"] = StaticText(a) self.menu_title = a def closeNonRecursive(self): -- cgit v1.2.3