X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0b3d548fcc6f9033c428b7c8dee84ac12ad8dee6..28f2c454309697e78017bf2df4fdbcd8cebd9ed1:/lib/python/Screens/SimpleSummary.py diff --git a/lib/python/Screens/SimpleSummary.py b/lib/python/Screens/SimpleSummary.py index f4502a76..41875641 100644 --- a/lib/python/Screens/SimpleSummary.py +++ b/lib/python/Screens/SimpleSummary.py @@ -1,19 +1,29 @@ from Screens.Screen import Screen -from Components.Sources.Clock import Clock +#from Components.Sources.Source import ObsoleteSource class SimpleSummary(Screen): skin = """ - + WithSeconds - + """ - def __init__(self, session, root_screen): + def __init__(self, session, parent): from Components.Label import Label - Screen.__init__(self, session) - self["Clock"] = Clock() - self["Title"] = Label(root_screen.title) + Screen.__init__(self, session, parent = parent) + + names = parent.skinName + if not isinstance(names, list): + names = [names] + + self.skinName = [ x + "_summary" for x in names ] + self.skinName.append("SimpleSummary") + + # if parent has a "skin_summary" defined, use that as default + self.skin = parent.__dict__.get("skin_summary", self.skin) + + self["Title"] = Label(parent.title or "") def setTitle(self, title): self["Title"].setText(title)