1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 from enigma import eTimer
6 from enigma import eLabel
9 # now some "real" components:
11 class Clock(HTMLComponent, GUIComponent, VariableText):
13 VariableText.__init__(self)
14 GUIComponent.__init__(self)
17 self.clockTimer = eTimer()
18 self.clockTimer.timeout.get().append(self.doClock)
19 self.clockTimer.start(1000)
24 self.setText("%2d:%02d:%02d" % (t[3], t[4], t[5]))
26 # realisierung als GUI
27 def createWidget(self, parent):
30 def removeWidget(self, w):
34 def produceHTML(self):