git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
servicemp3.cpp: more simple/flexible streaming detection
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
Event.py
diff --git
a/lib/python/Components/Sources/Event.py
b/lib/python/Components/Sources/Event.py
index 7b589d92e33bd972cc6a8a171391200cba2789b7..6cab6d39eeda8480e3ff91ed94423b2339089914 100644
(file)
--- a/
lib/python/Components/Sources/Event.py
+++ b/
lib/python/Components/Sources/Event.py
@@
-1,25
+1,18
@@
-from Components.VariableText import VariableText
-from Components.GUIComponent import GUIComponent
-from enigma import eEPGCache, eServiceReference as Ref, eLabel
from Source import Source
from Source import Source
-class Event(
VariableText, GUIComponent,
Source, object):
- def __init__(self
, timer=None
):
+class Event(Source, object):
+ def __init__(self):
Source.__init__(self)
Source.__init__(self)
- GUIComponent.__init__(self)
- VariableText.__init__(self)
- self.event = None
-
- GUI_WIDGET = eLabel
+ self.evt = None
def getCurrentEvent(self):
def getCurrentEvent(self):
- return self.ev
en
t
+ return self.evt
event = property(getCurrentEvent)
def newEvent(self, event):
event = property(getCurrentEvent)
def newEvent(self, event):
- if not self.ev
ent or self.even
t != event:
- self.ev
en
t = event
+ if not self.ev
t or self.ev
t != event:
+ self.evt = event
if not event:
self.changed((self.CHANGED_CLEAR,))
else:
if not event:
self.changed((self.CHANGED_CLEAR,))
else: