diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-01 02:05:14 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-01 02:05:14 +0000 |
| commit | 8dd41ca870f8d9fda806bc49295f464a3cf18bd3 (patch) | |
| tree | bfe2fa94f735dd84abe8a1f6a4effb505d033db3 /lib/python/Components/Clock.py | |
| parent | d0bbd07a29e766426b68a2361112892627ad9b8f (diff) | |
| download | enigma2-8dd41ca870f8d9fda806bc49295f464a3cf18bd3.tar.gz enigma2-8dd41ca870f8d9fda806bc49295f464a3cf18bd3.zip | |
add clock to lcd
Diffstat (limited to 'lib/python/Components/Clock.py')
| -rw-r--r-- | lib/python/Components/Clock.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/python/Components/Clock.py b/lib/python/Components/Clock.py index eba5ea27..d47ac78b 100644 --- a/lib/python/Components/Clock.py +++ b/lib/python/Components/Clock.py @@ -2,8 +2,10 @@ from HTMLComponent import * from GUIComponent import * from VariableText import * -from enigma import eTimer -from enigma import eLabel +#from enigma import eTimer +#from enigma import eLabel + +from enigma import * import time # now some "real" components: @@ -22,7 +24,9 @@ class Clock(HTMLComponent, GUIComponent, VariableText): def doClock(self): t = time.localtime() #HACK use timezone settings - self.setText("%2d:%02d:%02d" % (t[3] + 2, t[4], t[5])) + timestr = "%2d:%02d:%02d" % (t[3] + 2, t[4], t[5]) + self.setText(timestr) + setLCDClock(timestr) # realisierung als GUI def createWidget(self, parent): |
