blob: 992e343c31599c9456cd5ba4341a6cf5faa796eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from Screens.Screen import Screen
#from Components.Sources.Source import ObsoleteSource
class SimpleSummary(Screen):
skin = """
<screen position="0,0" size="132,64">
<widget source="global.CurrentTime" render="Label" position="56,46" size="82,18" font="Regular;16">
<convert type="ClockToText">WithSeconds</convert>
</widget>
<widget source="parent.Title" render="Label" position="6,4" size="120,42" font="Regular;18" />
</screen>"""
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)
|