1 from Screen import Screen
3 from Components.BlinkingPixmap import BlinkingPixmapConditional
4 from Components.Pixmap import Pixmap
5 from Components.config import config
7 from enigma import eDVBSatelliteEquipmentControl
10 def __init__(self, session):
11 Screen.__init__(self, session)
12 self["Dishpixmap"] = BlinkingPixmapConditional()
13 self["Dishpixmap"].onVisibilityChange.append(self.DishpixmapVisibilityChanged)
14 #self["Dishpixmap"] = Pixmap()
15 config.usage.showdish.addNotifier(self.configChanged)
16 self.configChanged(config.usage.showdish)
18 def configChanged(self, configElement):
19 if not configElement.value:
20 self["Dishpixmap"].setConnect(lambda: False)
22 self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
24 def DishpixmapVisibilityChanged(self, state):
26 self.show() # show complete screen
28 self.hide() # hide complete screen