def playPerson(self, rival): uno = QTVarios.blancasNegrasTiempo(self.pantalla) if not uno: return siBlancas, siTiempo, minutos, segundos, fastmoves = uno if siBlancas is None: return dic = {} dic["SIBLANCAS"] = siBlancas dic["RIVAL"] = rival dic["SITIEMPO"] = siTiempo and minutos > 0 dic["MINUTOS"] = minutos dic["SEGUNDOS"] = segundos dic["FASTMOVES"] = fastmoves self.gestor = GestorPerson.GestorPerson(self) self.gestor.inicio(dic)
def playPerson(self, rival): uno = QTVarios.blancasNegrasTiempo(self.main_window) if not uno: return is_white, siTiempo, minutos, segundos, fastmoves = uno if is_white is None: return dic = {} dic["ISWHITE"] = is_white dic["RIVAL"] = rival dic["SITIEMPO"] = siTiempo and minutos > 0 dic["MINUTOS"] = minutos dic["SEGUNDOS"] = segundos dic["FASTMOVES"] = fastmoves self.gestor = GestorPerson.GestorPerson(self) self.gestor.inicio(dic)
def playPersonAplazada(self, aplazamiento): self.gestor = GestorPerson.GestorPerson(self) self.gestor.inicio(None, aplazamiento=aplazamiento)