1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 #from enigma import eTimer
6 #from enigma import eLabel
10 from config import config
13 # now some "real" components:
15 class Clock(HTMLComponent, GUIComponent, VariableText):
17 VariableText.__init__(self)
18 GUIComponent.__init__(self)
21 self.clockTimer = eTimer()
22 self.clockTimer.timeout.get().append(self.doClock)
23 self.clockTimer.start(1000)
28 hour = (t[3] + config.timezone.val.value) % 24;
29 timestr = "%2d:%02d:%02d" % (hour, t[4], t[5])
33 # realisierung als GUI
34 def createWidget(self, parent):
37 def removeWidget(self, w):
41 def produceHTML(self):