remove deprecated code (deprecation date was 2008-01 and 2008-02)
[enigma2.git] / lib / python / Screens / SimpleSummary.py
1 from Screens.Screen import Screen
2 #from Components.Sources.Source import ObsoleteSource
3
4 class SimpleSummary(Screen):
5         skin = """
6         <screen position="0,0" size="132,64">
7                 <widget source="global.CurrentTime" render="Label" position="56,46" size="82,18" font="Regular;16">
8                         <convert type="ClockToText">WithSeconds</convert>
9                 </widget>
10                 <widget name="Title" position="6,4" size="120,42" font="Regular;18" />
11         </screen>"""
12         def __init__(self, session, parent):
13                 from Components.Label import Label
14                 Screen.__init__(self, session, parent = parent)
15
16                 names = parent.skinName
17                 if not isinstance(names, list):
18                   names = [names]
19
20                 self.skinName = [ x + "_summary" for x in names ]
21                 self.skinName.append("SimpleSummary")
22
23                 # if parent has a "skin_summary" defined, use that as default
24                 self.skin = parent.__dict__.get("skin_summary", self.skin)
25
26                 self["Title"] = Label(parent.title or "")
27
28         def setTitle(self, title):
29                 self["Title"].setText(title)