def onInit(self): #Set the schedule window text func.updateLabelText(self, 3000, 'Geplande Opnames') func.updateLabelText(self, 4001, 'Opnames vernieuwen') func.updateVisibility(self, 4001, True) #Load all current set recording self.load_recording(False)
def onInit(self): #Set the schedule window text func.updateLabelText(self, 3000, 'Geplande Alarmen') func.updateLabelText(self, 4001, 'Alle alarmen annuleren') func.updateLabelText(self, 3002, '* Programma alarm werkt alleen als Kodi geopend is.') func.updateVisibility(self, 4001, True) #Update the alarm panel height dialogControl = self.getControl(8000) dialogControl.setHeight(590) dialogControl = self.getControl(8001) dialogControl.setHeight(592) #Clear expired alarms from Json alarm_clean_expired() #Load all current set alarms self.load_alarm()
def count_program(self, resetSelect=False): listcontainer = self.getControl(1000) if listcontainer.size() > 0: func.updateVisibility(self, 2, True) func.updateVisibility(self, 3002, True) if var.SearchFilterTerm != '': func.updateLabelText( self, 1, str(listcontainer.size()) + " programma's gevonden") func.updateLabelText( self, 4, "Zoek resultaten voor " + var.SearchFilterTerm) else: func.updateLabelText( self, 1, str(listcontainer.size()) + " programma's") func.updateLabelText(self, 4, "") if resetSelect == True: self.setFocus(listcontainer) xbmc.sleep(100) listcontainer.selectItem(0) xbmc.sleep(100) else: func.updateVisibility(self, 2, False) func.updateVisibility(self, 3002, False) listcontainer = self.getControl(1001) self.setFocus(listcontainer) xbmc.sleep(100) if var.SearchFilterTerm != '': func.updateLabelText(self, 1, "Geen programma's gevonden") func.updateLabelText( self, 4, "Geen zoek resultaten voor " + var.SearchFilterTerm) listcontainer.selectItem(1) else: func.updateLabelText(self, 1, "Geen programma's") func.updateLabelText(self, 4, "") listcontainer.selectItem(0) xbmc.sleep(100)