X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/86126d70cfac1f47db0b0b20b1f8412c68b16d49..82bf6dd2d5cd1634a1c85bb5a8b1248e1822d89f:/lib/python/Screens/SimpleSummary.py diff --git a/lib/python/Screens/SimpleSummary.py b/lib/python/Screens/SimpleSummary.py old mode 100644 new mode 100755 index d10c32da..992e343c --- a/lib/python/Screens/SimpleSummary.py +++ b/lib/python/Screens/SimpleSummary.py @@ -1,17 +1,25 @@ from Screens.Screen import Screen +#from Components.Sources.Source import ObsoleteSource class SimpleSummary(Screen): skin = """ - - + + WithSeconds + + """ - def __init__(self, session, root_screen): - from Components.Label import Label - from Components.Clock import Clock - Screen.__init__(self, session) - self["Clock"] = Clock() - self["Title"] = Label(root_screen.title) + def __init__(self, session, parent): + + 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) - def setTitle(self, title): - self["Title"].setText(title)