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