From 834926ea17f0489f857e6cfbd886171740928d6f Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 6 Jan 2006 22:20:37 +0000 Subject: make epg toggling configurable (default set to unusable epg on INFO key) --- lib/python/Screens/InfoBarGenerics.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/python/Screens/InfoBarGenerics.py') 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: -- cgit v1.2.3