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)
26 self.clockTimer.start(1000)
29 self.clockTimer.stop()
34 timestr = "%2d:%02d:%02d" % (t.tm_hour, t.tm_min, t.tm_sec)
37 # realisierung als GUI
38 def createWidget(self, parent):
41 def removeWidget(self, w):
45 def produceHTML(self):