X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67b53c1cb06988394c35a6e965c99b72b67fe1be..071b99f578486ea21e3323e6f7190693f11fc35a:/lib/python/Components/ConditionalWidget.py diff --git a/lib/python/Components/ConditionalWidget.py b/lib/python/Components/ConditionalWidget.py index f826c296..f4b99837 100644 --- a/lib/python/Components/ConditionalWidget.py +++ b/lib/python/Components/ConditionalWidget.py @@ -11,7 +11,10 @@ class ConditionalWidget(GUIComponent): self.conditionCheckTimer = eTimer() self.conditionCheckTimer.timeout.get().append(self.update) self.conditionCheckTimer.start(1000) - + + def postWidgetCreate(self, instance): + self.visible = 0 + def setConnect(self, conditionalFunction): self.conditionalFunction = conditionalFunction @@ -24,22 +27,16 @@ class ConditionalWidget(GUIComponent): def update(self): if (self.conditionalFunction != None): try: - self.conditionalFunction() # check, if the conditionalfunction is still valid self.activateCondition(self.conditionalFunction()) except: self.conditionalFunction = None self.activateCondition(False) - -import time class BlinkingWidget(GUIComponent): def __init__(self): GUIComponent.__init__(self) - - self.blinking = True - + self.blinking = False self.setBlinkTime(500) - self.timer = eTimer() self.timer.timeout.get().append(self.blink)