X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FSimpleSummary.py;h=992e343c31599c9456cd5ba4341a6cf5faa796eb;hp=651d2e3d3887abda575cd4ab0d69e1327025d2e6;hb=879d60c88e24c2c3f2aab9dff73192c901f63f31;hpb=7cdca2a2cfb44ad34a3b36fb589f02b861c411c3 diff --git a/lib/python/Screens/SimpleSummary.py b/lib/python/Screens/SimpleSummary.py old mode 100644 new mode 100755 index 651d2e3..992e343 --- a/lib/python/Screens/SimpleSummary.py +++ b/lib/python/Screens/SimpleSummary.py @@ -1,19 +1,25 @@ from Screens.Screen import Screen -from Components.Sources.Source import ObsoleteSource +#from Components.Sources.Source import ObsoleteSource class SimpleSummary(Screen): skin = """ - + WithSeconds - + """ - def __init__(self, session, root_screen): - from Components.Label import Label - Screen.__init__(self, session) - self["Clock"] = ObsoleteSource(new_source = "global.CurrentTime", removal_date = "2008-01") - 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)