git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set parent
[enigma2.git]
/
lib
/
python
/
Screens
/
SimpleSummary.py
diff --git
a/lib/python/Screens/SimpleSummary.py
b/lib/python/Screens/SimpleSummary.py
index 651d2e3d3887abda575cd4ab0d69e1327025d2e6..50140a9938b3cb16984dfff1efd7202704016938 100644
(file)
--- a/
lib/python/Screens/SimpleSummary.py
+++ b/
lib/python/Screens/SimpleSummary.py
@@
-4,16
+4,22
@@
from Components.Sources.Source import ObsoleteSource
class SimpleSummary(Screen):
skin = """
<screen position="0,0" size="132,64">
class SimpleSummary(Screen):
skin = """
<screen position="0,0" size="132,64">
- <widget
name="global.CurrentTime
" position="56,46" size="82,18" font="Regular;16">
+ <widget
source="global.CurrentTime" render="Label
" position="56,46" size="82,18" font="Regular;16">
<convert type="ClockToText">WithSeconds</convert>
</widget>
<widget name="Title" position="6,4" size="120,42" font="Regular;18" />
</screen>"""
<convert type="ClockToText">WithSeconds</convert>
</widget>
<widget name="Title" position="6,4" size="120,42" font="Regular;18" />
</screen>"""
- def __init__(self, session,
root_screen
):
+ def __init__(self, session,
parent
):
from Components.Label import Label
from Components.Label import Label
- Screen.__init__(self, session)
+ 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["Clock"] = ObsoleteSource(new_source = "global.CurrentTime", removal_date = "2008-01")
self["Clock"] = ObsoleteSource(new_source = "global.CurrentTime", removal_date = "2008-01")
- self["Title"] = Label(
root_screen
.title)
+ self["Title"] = Label(
parent
.title)
def setTitle(self, title):
self["Title"].setText(title)
def setTitle(self, title):
self["Title"].setText(title)