def DeleteTimerCallback(self, callback=None): curService = None if self.type == EPG_TYPE_SINGLE and self.filterRef: curService = self.currentService.ref.toString() SetPartnerboxTimerlist(self.partnerboxentry, curService) Partnerbox_onSelectionChanged(self) self["list"].l.invalidate() # immer zeichnen, da ja was geloescht wurde
def DeleteTimerCallback(self, callback = None): try: curService = None if self.type == EPG_TYPE_SINGLE and self.filterRef: curService = self.currentService.ref.toString() SetPartnerboxTimerlist(self.partnerboxentry, curService) Partnerbox_onSelectionChanged(self) self["list"].l.invalidate() except: pass
def NewPartnerBoxSelected(self, session, what, partnerboxentry = None): if partnerboxentry is not None: self.partnerboxentry = partnerboxentry curService = None if self.type == EPG_TYPE_SINGLE and self.filterRef: curService = self.currentService.ref.toString() SetPartnerboxTimerlist(partnerboxentry, curService) Partnerbox_onSelectionChanged(self) self["key_red"].setText(partnerboxentry.name.value) self["list"].l.invalidate() # immer zeichnen, da neue Box ausgewaehlt wurde
def NewPartnerBoxSelected(self, session, what, partnerboxentry = None): try: if partnerboxentry is not None: self.partnerboxentry = partnerboxentry curService = None if self.type == EPG_TYPE_SINGLE and self.filterRef: curService = self.currentService.ref.toString() SetPartnerboxTimerlist(partnerboxentry, curService) Partnerbox_onSelectionChanged(self) name_red = '' if int(config.plugins.Partnerbox.entriescount.value) > 1: name_red = _("Zap/") + partnerboxentry.name.value else: if self.zapFunc: if config.plugins.Partnerbox.enablepartnerboxzapbuton.value: name_red = _("Zap/") + partnerboxentry.name.value else: name_red = _("Zap") else: name_red = partnerboxentry.name.value self["key_red"].setText(name_red) self["list"].l.invalidate() except: pass