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 green button and subservices-text only when subservices are available (showing...
[enigma2.git]
/
lib
/
python
/
Components
/
ConditionalWidget.py
diff --git
a/lib/python/Components/ConditionalWidget.py
b/lib/python/Components/ConditionalWidget.py
index 5ff77980a12634b68a2f0f24e6674ac5747e6d6d..eec5b4360a8a4b903cf8f8c46cf50f47c4d35770 100644
(file)
--- a/
lib/python/Components/ConditionalWidget.py
+++ b/
lib/python/Components/ConditionalWidget.py
@@
-31,9
+31,6
@@
class Widget(GUIComponent):
self.state = self.HIDDEN
self.instance.hide()
self.state = self.HIDDEN
self.instance.hide()
- def removeWidget(self, instance):
- pass
-
class ConditionalWidget(Widget):
def __init__(self, withTimer = True):
Widget.__init__(self)
class ConditionalWidget(Widget):
def __init__(self, withTimer = True):
Widget.__init__(self)
@@
-51,9
+48,11
@@
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):