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 timestr = "%2d:%02d:%02d" % (t.tm_hour, t.tm_min, t.tm_sec)
32 # realisierung als GUI
33 def createWidget(self, parent):
36 def removeWidget(self, w):
40 def produceHTML(self):