show green button and subservices-text only when subservices are available (showing...
[enigma2.git] / lib / python / Components / ConditionalWidget.py
index 5ff7798..eec5b43 100644 (file)
@@ -31,9 +31,6 @@ class Widget(GUIComponent):
                self.state = self.HIDDEN
                self.instance.hide()
        
-       def removeWidget(self, instance):
-               pass
-
 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):
+                               print "update: " + str(self) + " SHOW"
                                self.showWidget()
                else:
                        if (self.state == self.SHOWN):
+                               print "update: " + str(self) + " HIDE"
                                self.hideWidget()
 
        def update(self):