git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add delete to advanced restore
[enigma2.git]
/
lib
/
python
/
Components
/
ConditionalWidget.py
diff --git
a/lib/python/Components/ConditionalWidget.py
b/lib/python/Components/ConditionalWidget.py
index c1baceb25400a1c98d0c85c9e499a296e9a5579d..192813f527654d1976d61531a224bd0f362b6ce2 100644
(file)
--- a/
lib/python/Components/ConditionalWidget.py
+++ b/
lib/python/Components/ConditionalWidget.py
@@
-9,9
+9,12
@@
class ConditionalWidget(GUIComponent):
if (withTimer):
self.conditionCheckTimer = eTimer()
if (withTimer):
self.conditionCheckTimer = eTimer()
- self.conditionCheckTimer.
timeout.get()
.append(self.update)
+ self.conditionCheckTimer.
callback
.append(self.update)
self.conditionCheckTimer.start(1000)
self.conditionCheckTimer.start(1000)
-
+
+ def postWidgetCreate(self, instance):
+ self.visible = 0
+
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction
@@
-32,13
+35,10
@@
class ConditionalWidget(GUIComponent):
class BlinkingWidget(GUIComponent):
def __init__(self):
GUIComponent.__init__(self)
class BlinkingWidget(GUIComponent):
def __init__(self):
GUIComponent.__init__(self)
-
- self.blinking = True
-
+ self.blinking = False
self.setBlinkTime(500)
self.setBlinkTime(500)
-
self.timer = eTimer()
self.timer = eTimer()
- self.timer.
timeout.get()
.append(self.blink)
+ self.timer.
callback
.append(self.blink)
def setBlinkTime(self, time):
self.blinktime = time
def setBlinkTime(self, time):
self.blinktime = time