~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/gamemenu.py

  • Committer: Facundo Batista
  • Date: 2013-06-26 02:17:57 UTC
  • mfrom: (95.1.9 pyarmode)
  • Revision ID: facundo@taniquetil.com.ar-20130626021757-0aj8wvmgta05820z
PyAr mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            (menu.MenuItem(_('Classic'), self.on_classic)),
124
124
            (menu.MenuItem(_('Rush!'), self.on_rush)),
125
125
            (menu.MenuItem(_('Crazy'), self.on_crazy)),
 
126
            (menu.MenuItem(_('PyAr'), self.on_pyar)),
126
127
            (menu.MenuItem(_('Back'), self.on_quit)),
127
128
        ]
128
129
 
147
148
        sc = self.gm.play_crazy()
148
149
        director.replace(sc)
149
150
 
 
151
    def on_pyar(self):
 
152
        """Python Argentina mode."""
 
153
        sc = self.gm.play_pyar()
 
154
        director.replace(sc)
 
155
 
150
156
 
151
157
class SafeQuitMenu(menu.Menu):
152
158
    """Ask if sure to exit the game."""