do not allow colon in filenames
[enigma2.git] / lib / python / Components / Clock.py
index e2d9d5f5605862a9dfbf6434e90e285bc4e85b50..982d1c4a6f11fb951784213b2659d9248a888be3 100644 (file)
@@ -20,7 +20,12 @@ class Clock(HTMLComponent, GUIComponent, VariableText):
                
                self.clockTimer = eTimer()
                self.clockTimer.timeout.get().append(self.doClock)
+
+       def onShow(self):               
                self.clockTimer.start(1000)
+       
+       def onHide(self):
+               self.clockTimer.stop()
 
 # "funktionalitaet"    
        def doClock(self):
@@ -39,4 +44,3 @@ class Clock(HTMLComponent, GUIComponent, VariableText):
 # ...und als HTML:
        def produceHTML(self):
                return self.getText()
-