from Components.BlinkingPixmap import BlinkingPixmapConditional
from Components.Pixmap import Pixmap
from Components.Button import Button
+from Components.config import config
-from enigma import *
+from enigma import eDVBSatelliteEquipmentControl
class Dish(Screen):
def __init__(self, session):
self["transparent"] = Button("")
self["Dishpixmap"] = BlinkingPixmapConditional()
#self["Dishpixmap"] = Pixmap()
- self["Dishpixmap"].setConnect(lambda: False)
- #self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
+ config.usage.showdish.addNotifier(self.configChanged)
+ self.configChanged(config.usage.showdish)
+
+ def configChanged(self, configElement):
+ if not configElement.value:
+ self["Dishpixmap"].setConnect(lambda: False)
+ else:
+ self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)