Add windowTitle when open ChoiceBox
[openblackhole/openblackhole-enigma2.git] / lib / python / Screens / EpgSelection.py
index 5460641..1f01f3e 100644 (file)
@@ -36,7 +36,6 @@ class EPGSelection(Screen):
 
        def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None, serviceChangeCB=None):
                Screen.__init__(self, session)
 
        def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None, serviceChangeCB=None):
                Screen.__init__(self, session)
-               self.setTitle(_("EPG selection"))
                self.bouquetChangeCB = bouquetChangeCB
                self.serviceChangeCB = serviceChangeCB
                self.ask_time = -1 #now
                self.bouquetChangeCB = bouquetChangeCB
                self.serviceChangeCB = serviceChangeCB
                self.ask_time = -1 #now
@@ -48,6 +47,7 @@ class EPGSelection(Screen):
                self.session = session
                if isinstance(service, str) and eventid != None:
                        self.type = EPG_TYPE_SIMILAR
                self.session = session
                if isinstance(service, str) and eventid != None:
                        self.type = EPG_TYPE_SIMILAR
+                       self.setTitle(_("Similar EPG"))
                        self["key_yellow"] = Button()
                        self["key_blue"] = Button()
                        self["key_red"] = Button()
                        self["key_yellow"] = Button()
                        self["key_blue"] = Button()
                        self["key_red"] = Button()
@@ -55,6 +55,7 @@ class EPGSelection(Screen):
                        self.eventid = eventid
                        self.zapFunc = None
                elif isinstance(service, eServiceReference) or isinstance(service, str):
                        self.eventid = eventid
                        self.zapFunc = None
                elif isinstance(service, eServiceReference) or isinstance(service, str):
+                       self.setTitle(_("Single EPG"))
                        self.type = EPG_TYPE_SINGLE
                        self["key_yellow"] = Button()
                        self["key_blue"] = Button(_("Select Channel"))
                        self.type = EPG_TYPE_SINGLE
                        self["key_yellow"] = Button()
                        self["key_blue"] = Button(_("Select Channel"))
@@ -63,6 +64,7 @@ class EPGSelection(Screen):
                        self.sort_type = 0
                        self.setSortDescription()
                else:
                        self.sort_type = 0
                        self.setSortDescription()
                else:
+                       self.setTitle(_("Multi EPG"))
                        self.skinName = "EPGSelectionMulti"
                        self.type = EPG_TYPE_MULTI
                        self["key_yellow"] = Button(pgettext("button label, 'previous screen'", "Prev"))
                        self.skinName = "EPGSelectionMulti"
                        self.type = EPG_TYPE_MULTI
                        self["key_yellow"] = Button(pgettext("button label, 'previous screen'", "Prev"))
@@ -145,7 +147,7 @@ class EPGSelection(Screen):
                        def boxAction(choice):
                                if choice:
                                        choice[1]()
                        def boxAction(choice):
                                if choice:
                                        choice[1]()
-                       self.session.openWithCallback(boxAction, ChoiceBox, title=text, list=menu)
+                       self.session.openWithCallback(boxAction, ChoiceBox, title=text, list=menu, windowTitle=_("Further options"))
 
        def runPlugin(self, plugin):
                event = self["list"].getCurrent()
 
        def runPlugin(self, plugin):
                event = self["list"].getCurrent()