follow api changes
[enigma2.git] / lib / python / Screens / Dish.py
1 from Screen import Screen
2
3 from Components.BlinkingPixmap import BlinkingPixmapConditional
4 from Components.Pixmap import Pixmap
5 from Components.Button import Button
6 from Components.config import config, currentConfigSelectionElement
7
8 from enigma import *
9
10 class Dish(Screen):
11         def __init__(self, session):
12                 Screen.__init__(self, session)
13                 
14                 self["transparent"] = Button("")
15                 self["Dishpixmap"] = BlinkingPixmapConditional()
16                 #self["Dishpixmap"] = Pixmap()
17                 if currentConfigSelectionElement(config.usage.showdish) == "no":
18                         self["Dishpixmap"].setConnect(lambda: False)
19                 else:
20                         self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)