aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-27 09:39:49 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-27 09:39:49 +0000
commitdb7890aecc35a0eaa70ffb47fa46ecaaa70df379 (patch)
tree7320589870736dbd1d2ad2dd58de63da08fa1b50 /lib/python
parentc803490aec2d7c7f13966e1a2e926cac018dea2e (diff)
downloadenigma2-db7890aecc35a0eaa70ffb47fa46ecaaa70df379.tar.gz
enigma2-db7890aecc35a0eaa70ffb47fa46ecaaa70df379.zip
ok in multiepg is now similar to press info
change service is now possible via red button when the selected event is the now event
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/EpgSelection.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/python/Screens/EpgSelection.py b/lib/python/Screens/EpgSelection.py
index 1af2cbb9..331fe75e 100644
--- a/lib/python/Screens/EpgSelection.py
+++ b/lib/python/Screens/EpgSelection.py
@@ -70,7 +70,7 @@ class EPGSelection(Screen):
"yellow": self.yellowButtonPressed,
"blue": self.blueButtonPressed,
"info": self.infoKeyPressed,
- "zapTo": self.zapTo,
+ "red": self.zapTo,
"input_date_time": self.enterDateTime,
"nextBouquet": self.nextBouquet,
"prevBouquet": self.prevBouquet
@@ -153,16 +153,16 @@ class EPGSelection(Screen):
setEvent(cur[0])
def zapTo(self): # just used in multiepg
- if self.zapFunc != None:
- self.closeRecursive = True
- ref = self["list"].getCurrent()[1]
- self.zapFunc(ref.ref)
+ if self.zapFunc and self["key_red"].getText() == "Zap":
+ lst = self["list"]
+ count = lst.getCurrentChangeCount()
+ if count == 0:
+ self.closeRecursive = True
+ ref = lst.getCurrent()[1]
+ self.zapFunc(ref.ref)
def eventSelected(self):
- if self.type == EPG_TYPE_MULTI:
- self.zapTo()
- else:
- self.infoKeyPressed()
+ self.infoKeyPressed()
def yellowButtonPressed(self):
if self.type == EPG_TYPE_MULTI:
@@ -208,13 +208,16 @@ class EPGSelection(Screen):
self["now_text"].hide()
self["next_text"].hide()
self["more_text"].hide()
+ self["key_red"].setText("")
else:
if state == 1:
+ self["key_red"].setText("Zap")
self["now_button_sel"].show()
self["now_button"].hide()
else:
self["now_button"].show()
self["now_button_sel"].hide()
+ self["key_red"].setText("")
if state == 2:
self["next_button_sel"].show()