aboutsummaryrefslogtreecommitdiff
path: root/components.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-04-17 20:01:28 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-04-17 20:01:28 +0000
commit78c828aae07db0b15a66577d9230cb848fe536fa (patch)
tree28f8a54388094420c73c01938a389b52b6c2015b /components.py
parent18ee5e9c8a01b3ddd899a6aeea40ab0a6ce3da7d (diff)
downloadenigma2-78c828aae07db0b15a66577d9230cb848fe536fa.tar.gz
enigma2-78c828aae07db0b15a66577d9230cb848fe536fa.zip
- load palette from png
- named color support
Diffstat (limited to 'components.py')
-rw-r--r--components.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/components.py b/components.py
index abf25f20..deb3760c 100644
--- a/components.py
+++ b/components.py
@@ -348,7 +348,8 @@ class ServiceScan:
print "*** warning *** scan was not finished!"
def isDone(self):
- return self.state == self.Done
+ print "state is %d " % (self.state)
+ return self.state == self.Done or self.state == self.Error
class ActionMap:
def __init__(self, contexts = [ ], actions = { }, prio=0):
@@ -406,12 +407,12 @@ class EventInfo(PerServiceDisplay):
def __init__(self, navcore, now_or_next):
# listen to evUpdatedEventInfo and evStopService
# note that evStopService will be called once to establish a known state
+ self.now_or_next = now_or_next
PerServiceDisplay.__init__(self, navcore,
{
pNavigation.evUpdatedEventInfo: self.ourEvent,
pNavigation.evStopService: self.stopEvent
})
- self.now_or_next = now_or_next
def ourEvent(self):
info = iServiceInformationPtr()
@@ -428,7 +429,8 @@ class EventInfo(PerServiceDisplay):
print "new event info in EventInfo! yeah!"
def stopEvent(self):
- self.setText("waiting for event data...");
+ self.setText(
+ ("waiting for event data...", "", "--:--", "--:--")[self.now_or_next]);
class ServiceName(PerServiceDisplay):
def __init__(self, navcore):