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