aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-01-02 15:23:25 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-01-02 15:23:25 +0000
commit974c5968c1a263879795003dfdbdda6f96030982 (patch)
tree565b534c4c1e937b820dd19f1339435dbee43b20 /lib/python
parent4ca6dd275393344b9a27cfb2e5a755a4d74a414f (diff)
downloadenigma2-974c5968c1a263879795003dfdbdda6f96030982.tar.gz
enigma2-974c5968c1a263879795003dfdbdda6f96030982.zip
standby clock
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Standby.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/python/Screens/Standby.py b/lib/python/Screens/Standby.py
index cbd123ae..ebac55a8 100644
--- a/lib/python/Screens/Standby.py
+++ b/lib/python/Screens/Standby.py
@@ -3,6 +3,8 @@ from Components.ActionMap import ActionMap
from Components.config import config
from Components.AVSwitch import AVSwitch
from enigma import eDVBVolumecontrol, eDBoxLCD, eServiceReference
+from Components.Sources.Clock import Clock
+
class Standby(Screen):
def Power(self):
@@ -35,7 +37,8 @@ class Standby(Screen):
def __init__(self, session, infobar):
Screen.__init__(self, session)
self.infobar = infobar
- self. avswitch = AVSwitch()
+ self.avswitch = AVSwitch()
+
print "enter standby"
self["actions"] = ActionMap( [ "StandbyActions" ],
@@ -51,3 +54,18 @@ class Standby(Screen):
self.avswitch.setInput("SCART")
#set lcd brightness to standby value
eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)
+
+ def createSummary(self):
+ return StandbySummary
+
+class StandbySummary(Screen):
+ skin = """
+ <screen position="0,0" size="132,64">
+ <widget source="CurrentTime" render="Label" position="0,0" size="132,64" font="Regular;40" halign="center">
+ <convert type="ClockToText" />
+ </widget>
+ </screen>"""
+
+ def __init__(self, session, parent):
+ Screen.__init__(self, session)
+ self["CurrentTime"] = Clock()