1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 #from enigma import eTimer
6 #from enigma import eLabel
11 # now some "real" components:
13 class Clock(VariableText, HTMLComponent, GUIComponent):
15 VariableText.__init__(self)
16 GUIComponent.__init__(self)
19 self.clockTimer = eTimer()
20 self.clockTimer.timeout.get().append(self.doClock)
24 self.clockTimer.start(1000)
27 self.clockTimer.stop()
31 timestr = "%2d:%02d:%02d" % (t.tm_hour, t.tm_min, t.tm_sec)
34 def createWidget(self, parent):
37 def removeWidget(self, w):
40 def produceHTML(self):