def onClick(self, controlId): if controlId == 32502: url = self.getControl(32502).getSelectedItem().getProperty("url") torneo = self.getControl(32502).getSelectedItem().getProperty( "competicion") eventdetails.showDetails(url, torneo) elif controlId == 32503: url = self.getControl(32503).getSelectedItem().getProperty("url") torneo = self.getControl(32503).getSelectedItem().getProperty( "competicion") eventdetails.showDetails(url, torneo)
def onClick(self, controlId): if not self.standalone: if controlId == 32500: select = self.getControl(32500).getSelectedItem() eventdetails.showDetails( select.getLabel(), select.getProperty('league_and_round')) if controlId == 33501 and self.prev: self.url = self.prev self.reset_buttons(33503) self.filtro = "" self.resultados = {} self.livescoresThread() if controlId == 33502 and self.next: self.url = self.next self.reset_buttons(33503) self.filtro = "" self.resultados = {} self.livescoresThread() if controlId == 33503: self.filtro = "" self.setLivescores() self.reset_buttons(33503) if controlId == 33504: self.filtro = "En juego" self.setLivescores() self.reset_buttons(33504) if controlId == 33505: self.filtro = "Por empezar" self.setLivescores() self.reset_buttons(33505) if controlId == 33506: self.filtro = "Finalizado" self.setLivescores() self.reset_buttons(33506) else: if controlId == 32501: self.close() main = Main('script-matchcenter-Livescores.xml', config.get_runtime_path(), standalone=False) main.doModal() del main
def onClick(self, controlId): if controlId == 32500: selectedItem = self.getControl(32500).getSelectedPosition() eventdetails.showDetails(self.livecopy[selectedItem])
def onClick(self,controlId): if controlId == 32503: eventid = self.getControl(controlId).getSelectedItem().getProperty("eventid") eventdetails.showDetails(self.eventObjs[eventid])
def onClick(self,controlId): if controlId == 32500: selectedItem = self.getControl(32500).getSelectedPosition() eventdetails.showDetails(self.livecopy[selectedItem])