Ejemplo n.º 1
0
 def setUp(self):
     """ Build the Menu and Entries for the test """
     self.menu = Menu()
     self.firstEntry = MenuEntry(None)
     self.secondEntry = MenuEntry(None)
     self.thirdEntry = MenuEntry(None)
     self.menu.entries = [
         self.firstEntry, self.secondEntry, self.thirdEntry
     ]
     self.menu.selectEntry()
Ejemplo n.º 2
0
 def __init__(self, pokemon, callback):
     """ Builds a pokemon menu entry with its pokemon """
     self.pokemon = pokemon
     MenuEntry.__init__(self, callback)
Ejemplo n.º 3
0
 def __init__(self, attack, callback):
     """ Builds a attack menu entry with its attack """
     self.attack = attack
     MenuEntry.__init__(self, callback)
Ejemplo n.º 4
0
 def __init__(self, attack, callback):
     """ Builds a attack menu entry with its attack """
     self.attack = attack
     MenuEntry.__init__(self, callback)
Ejemplo n.º 5
0
 def __init__(self, trainer, callback):
     """ Builds a trainer menu entry with its trainer """
     self.trainer = trainer
     MenuEntry.__init__(self, callback)