git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing import
[enigma2.git]
/
lib
/
python
/
Screens
/
Dish.py
diff --git
a/lib/python/Screens/Dish.py
b/lib/python/Screens/Dish.py
index e05b2a8896d627987becbd1ebb49710dd2630375..da759b5e2115e212241ba6363a184fd5179ca13b 100644
(file)
--- a/
lib/python/Screens/Dish.py
+++ b/
lib/python/Screens/Dish.py
@@
-2,7
+2,6
@@
from Screen import Screen
from Components.BlinkingPixmap import BlinkingPixmapConditional
from Components.Pixmap import Pixmap
from Components.BlinkingPixmap import BlinkingPixmapConditional
from Components.Pixmap import Pixmap
-from Components.Button import Button
from Components.config import config
from enigma import eDVBSatelliteEquipmentControl
from Components.config import config
from enigma import eDVBSatelliteEquipmentControl
@@
-10,9
+9,8
@@
from enigma import eDVBSatelliteEquipmentControl
class Dish(Screen):
def __init__(self, session):
Screen.__init__(self, session)
class Dish(Screen):
def __init__(self, session):
Screen.__init__(self, session)
-
- self["transparent"] = Button("")
self["Dishpixmap"] = BlinkingPixmapConditional()
self["Dishpixmap"] = BlinkingPixmapConditional()
+ self["Dishpixmap"].onVisibilityChange.append(self.DishpixmapVisibilityChanged)
#self["Dishpixmap"] = Pixmap()
config.usage.showdish.addNotifier(self.configChanged)
self.configChanged(config.usage.showdish)
#self["Dishpixmap"] = Pixmap()
config.usage.showdish.addNotifier(self.configChanged)
self.configChanged(config.usage.showdish)
@@
-22,3
+20,9
@@
class Dish(Screen):
self["Dishpixmap"].setConnect(lambda: False)
else:
self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
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