X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FGUISkin.py;h=4ee8a4a32422187d6e671972e6d9827bafa06579;hp=1bd2729700ad3b28751e4ec87461b983646fd4ec;hb=755936c5114029219a6800b81b74ffdfbcbbfe30;hpb=f8b2c3b18b2719f33a940576b408f66a54a7c223;ds=sidebyside diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py old mode 100644 new mode 100755 index 1bd2729..4ee8a4a --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -1,11 +1,13 @@ from GUIComponent import GUIComponent from skin import applyAllAttributes from Tools.CList import CList +from Sources.StaticText import StaticText class GUISkin: __module__ = __name__ def __init__(self): + self["Title"] = StaticText() self.onLayoutFinish = [ ] self.summaries = CList() self.instance = None @@ -63,9 +65,14 @@ class GUISkin: def setTitle(self, title): self.instance.setTitle(title) - self.title = title + self["Title"].text = title self.summaries.setTitle(title) + def getTitle(self): + return self["Title"].text + + title = property(getTitle, setTitle) + def setDesktop(self, desktop): self.desktop = desktop @@ -88,6 +95,6 @@ class GUISkin: # we need to make sure that certain attributes come last self.skinAttributes.sort(key=lambda a: {"position": 1}.get(a[0], 0)) - self.title = title + self["Title"].text = title applyAllAttributes(self.instance, self.desktop, self.skinAttributes, self.scale) self.createGUIScreen(self.instance, self.desktop)