コード例 #1
0
 def micelo(self, siCompetitivo):
     self.gestor = GestorMicElo.GestorMicElo(self)
     resp = PantallaMotores.eligeMotorMicElo(self.gestor, self.configuracion.miceloActivo(siCompetitivo))
     if resp:
         respT = QTVarios.tiempo(self.pantalla, minMinutos=10 if siCompetitivo else 3, minSegundos=0, maxMinutos=999,
                                 maxSegundos=999)
         if respT:
             minutos, segundos = respT
             self.gestor.inicio(resp, minutos, segundos, siCompetitivo)
コード例 #2
0
ファイル: Procesador.py プロジェクト: JERUKA9/lucaschess
 def micelo(self, siCompetitivo):
     self.gestor = GestorMicElo.GestorMicElo(self)
     resp = PantallaMotores.eligeMotorMicElo(self.gestor, self.configuracion.miceloActivo(siCompetitivo))
     if resp:
         respT = QTVarios.tiempo(self.pantalla, minMinutos=10 if siCompetitivo else 3, minSegundos=0, maxMinutos=999,
                                 maxSegundos=999)
         if respT:
             minutos, segundos = respT
             self.gestor.inicio(resp, minutos, segundos, siCompetitivo)