From ed6ab83ab71bbef6d8df689f9ea7f9c1474f625f Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 6 Dec 2005 19:10:57 +0000 Subject: show green button and subservices-text only when subservices are available (showing of the label doesn't work. why?) --- lib/python/Components/ConditionalWidget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/python/Components/ConditionalWidget.py') diff --git a/lib/python/Components/ConditionalWidget.py b/lib/python/Components/ConditionalWidget.py index 5ff77980..eec5b436 100644 --- 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() - 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): -- cgit v1.2.3