Beispiel #1
0
 def onBackPressed(self):
     if self.pokemons.origin == 'menu':
         from controller.accueilController import AccueilController
         self.next_ = AccueilController()
     else:
         from controller.fight.fightController import FightController
         self.next_ = FightController()
Beispiel #2
0
 def onInput(self, key):
     tmp_text = getInput(key, self.text)
     if self.text != '' and ord(key) == 13: # lors de l'appuie sur la touche 'ENTREE'
         getUser().name = tmp_text
         self.next_ = AccueilController(text="Vous venez de recevoir votre premier pokemon !")
     else:
         self.text = tmp_text
     self.setFenetreTextName()
 def onBackPressed(self):
     from controller.accueilController import AccueilController
     self.next_ = AccueilController()