git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show red record button only if hdd is present
[enigma2.git]
/
lib
/
python
/
Components
/
ConditionalWidget.py
diff --git
a/lib/python/Components/ConditionalWidget.py
b/lib/python/Components/ConditionalWidget.py
index eec5b4360a8a4b903cf8f8c46cf50f47c4d35770..8fb7c38935437d1d048f771ecfb894a89f7ae1ad 100644
(file)
--- a/
lib/python/Components/ConditionalWidget.py
+++ b/
lib/python/Components/ConditionalWidget.py
@@
-40,7
+40,7
@@
class ConditionalWidget(Widget):
if (withTimer):
self.conditionCheckTimer = eTimer()
self.conditionCheckTimer.timeout.get().append(self.update)
if (withTimer):
self.conditionCheckTimer = eTimer()
self.conditionCheckTimer.timeout.get().append(self.update)
- self.conditionCheckTimer.start(
10
00)
+ self.conditionCheckTimer.start(
5
00)
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction
@@
-48,11
+48,9
@@
class ConditionalWidget(Widget):
def activateCondition(self, condition):
if (condition):
if (self.state == self.HIDDEN):
def activateCondition(self, condition):
if (condition):
if (self.state == self.HIDDEN):
- print "update: " + str(self) + " SHOW"
self.showWidget()
else:
if (self.state == self.SHOWN):
self.showWidget()
else:
if (self.state == self.SHOWN):
- print "update: " + str(self) + " HIDE"
self.hideWidget()
def update(self):
self.hideWidget()
def update(self):