aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-12 12:30:20 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-12 12:30:20 +0000
commit071b99f578486ea21e3323e6f7190693f11fc35a (patch)
tree01b3bb2cccfb4982285a8dbc2da4f918eb88085e /lib/python/Screens
parente0ff0dd4a45a16cbb4f6e32e3566074eeb5acab6 (diff)
downloadenigma2-071b99f578486ea21e3323e6f7190693f11fc35a.tar.gz
enigma2-071b99f578486ea21e3323e6f7190693f11fc35a.zip
initial hide conditional widgets
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/Dish.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Screens/Dish.py b/lib/python/Screens/Dish.py
index e05b2a88..88be3778 100644
--- a/lib/python/Screens/Dish.py
+++ b/lib/python/Screens/Dish.py
@@ -10,9 +10,9 @@ from enigma import eDVBSatelliteEquipmentControl
class Dish(Screen):
def __init__(self, session):
Screen.__init__(self, session)
-
self["transparent"] = Button("")
self["Dishpixmap"] = BlinkingPixmapConditional()
+ self["Dishpixmap"].onVisibilityChange.append(self.DishpixmapVisibilityChanged)
#self["Dishpixmap"] = Pixmap()
config.usage.showdish.addNotifier(self.configChanged)
self.configChanged(config.usage.showdish)
@@ -22,3 +22,9 @@ class Dish(Screen):
self["Dishpixmap"].setConnect(lambda: False)
else:
self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
+
+ def DishpixmapVisibilityChanged(self, state):
+ if state:
+ self.show() # show complete screen
+ else:
+ self.hide() # hide complete screen