convert to new skin system
[enigma2.git] / lib / python / Screens / SimpleSummary.py
1 from Screens.Screen import Screen
2 from Components.Sources.Clock import Clock
3
4 class SimpleSummary(Screen):
5         skin = """
6         <screen position="0,0" size="132,64">
7                 <widget name="Clock" position="50,46" size="82,18" font="Regular;16">
8                         <convert type="ClockToText">WithSeconds</convert>
9                 </widget>
10                 <widget name="Title" position="0,4" size="132,42" font="Regular;18" />
11         </screen>"""
12         def __init__(self, session, root_screen):
13                 from Components.Label import Label
14                 Screen.__init__(self, session)
15                 self["Clock"] = Clock()
16                 self["Title"] = Label(root_screen.title)
17
18         def setTitle(self, title):
19                 self["Title"].setText(title)