aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-18 20:21:53 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-18 20:21:53 +0000
commit124d18766f09faf0209eeb052c8c8a865e672eb3 (patch)
tree30f5876a15594988ac8a4dd185a20a038ff265c5 /lib/python
parent4b1d2e8d5bf0f73579dc1b385a4d66316b62c418 (diff)
downloadenigma2-124d18766f09faf0209eeb052c8c8a865e672eb3.tar.gz
enigma2-124d18766f09faf0209eeb052c8c8a865e672eb3.zip
reenable the blinking dish on positioner movement (can be enabled in the usage setup menu)
dish designed by juergen - thanx for that
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/ConditionalWidget.py6
-rw-r--r--lib/python/Components/UsageConfig.py3
-rw-r--r--lib/python/Screens/Dish.py7
-rw-r--r--lib/python/Screens/InfoBarGenerics.py2
4 files changed, 10 insertions, 8 deletions
diff --git a/lib/python/Components/ConditionalWidget.py b/lib/python/Components/ConditionalWidget.py
index 43130fdc..031a1061 100644
--- a/lib/python/Components/ConditionalWidget.py
+++ b/lib/python/Components/ConditionalWidget.py
@@ -65,10 +65,6 @@ class ConditionalWidget(Widget):
self.conditionalFunction = None
self.activateCondition(False)
-
-
-
-
import time
class BlinkingWidget(Widget):
@@ -93,10 +89,12 @@ class BlinkingWidget(Widget):
self.showWidget()
def startBlinking(self):
+ print "****************************** Start blinking"
self.blinking = True
self.timer.start(self.blinktime)
def stopBlinking(self):
+ print "****************************** Stop blinking"
self.blinking = False
if (self.state == self.SHOWN):
self.hideWidget()
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index 8b4a2960..5646a329 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -4,4 +4,5 @@ from enigma import *
def InitUsageConfig():
config.usage = ConfigSubsection();
- config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ); \ No newline at end of file
+ config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
+ config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ) \ No newline at end of file
diff --git a/lib/python/Screens/Dish.py b/lib/python/Screens/Dish.py
index 1f5c391c..c8e9b6c7 100644
--- a/lib/python/Screens/Dish.py
+++ b/lib/python/Screens/Dish.py
@@ -3,6 +3,7 @@ from Screen import Screen
from Components.BlinkingPixmap import BlinkingPixmapConditional
from Components.Pixmap import Pixmap
from Components.Button import Button
+from Components.config import config, currentConfigSelectionElement
from enigma import *
@@ -13,5 +14,7 @@ class Dish(Screen):
self["transparent"] = Button("")
self["Dishpixmap"] = BlinkingPixmapConditional()
#self["Dishpixmap"] = Pixmap()
- self["Dishpixmap"].setConnect(lambda: False)
- #self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
+ if currentConfigSelectionElement(config.usage.showdish) == "no":
+ self["Dishpixmap"].setConnect(lambda: False)
+ else:
+ self["Dishpixmap"].setConnect(eDVBSatelliteEquipmentControl.getInstance().isRotorMoving)
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index c3b1a086..fc19c806 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -39,7 +39,7 @@ from Menu import MainMenu, mdom
class InfoBarDish:
def __init__(self):
self.dishDialog = self.session.instantiateDialog(Dish)
- self.onShown.append(self.dishDialog.instance.hide)
+ self.onShown.append(self.dishDialog.instance.show)
class InfoBarShowHide:
""" InfoBar show/hide control, accepts toggleShow and hide actions, might start