aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-06 22:20:37 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-06 22:20:37 +0000
commit834926ea17f0489f857e6cfbd886171740928d6f (patch)
treeaf16559929140712a389f5d83f46c2bf7d14c1ca /lib/python/Screens/InfoBarGenerics.py
parent3c79adcf97b4c2c84ede4212b6ede42c5987db83 (diff)
downloadenigma2-834926ea17f0489f857e6cfbd886171740928d6f.tar.gz
enigma2-834926ea17f0489f857e6cfbd886171740928d6f.zip
make epg toggling configurable (default set to unusable epg on INFO key)
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 921dd587..10a810cf 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -33,6 +33,8 @@ from enigma import *
import time
import os
+from Components.config import config, currentConfigSelectionElement
+
# hack alert!
from Menu import MainMenu, mdom
@@ -358,9 +360,15 @@ class InfoBarEPG:
def __init__(self):
self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions",
{
- "showEPGList": (self.showEPGList, _("show EPG...")),
+ "showEPGList": (self.showEPG, _("show EPG...")),
})
+ def showEPG(self):
+ if currentConfigSelectionElement(config.usage.epgtoggle) == "yes":
+ self.openSingleServiceEPG()
+ else:
+ self.showEPGList()
+
def showEPGList(self):
bouquets = self.servicelist.getBouquetList()
if bouquets is None: