comparison gamelib/menu.py @ 19:87f8a46b88af

Fix indentation
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 22 Aug 2010 17:07:01 +0200
parents 55f1969e41c9
children 9d5de13e2ac3
comparison
equal deleted inserted replaced
18:c9b124c2f5c6 19:87f8a46b88af
5 from albow.screen import Screen 5 from albow.screen import Screen
6 from albow.controls import Button, Label 6 from albow.controls import Button, Label
7 from albow.layout import Column 7 from albow.layout import Column
8 8
9 class MenuScreen(Screen): 9 class MenuScreen(Screen):
10 def __init__(self, shell): 10 def __init__(self, shell):
11 Screen.__init__(self, shell) 11 Screen.__init__(self, shell)
12 self.shell = shell 12 StartButton = Button('Start New Game', action = self.start)
13 StartButton = Button('Start New Game', action = self.start) 13 QuitButton = Button('Quit', action = shell.quit)
14 QuitButton = Button('Quit', action = shell.quit) 14 Title = Label('Caught! ... In SPAACE')
15 Title = Label('Caught! ... In SPAACE') 15 menu = Column([
16 menu = Column([ 16 Title,
17 Title, 17 StartButton,
18 StartButton, 18 QuitButton,
19 QuitButton, 19 ], align='l', spacing=20)
20 ], align='l', spacing=20) 20 self.add_centered(menu)
21 self.add_centered(menu)
22 21
23 def start(self): 22 def start(self):
24 print 'Starting the game' 23 print 'Starting the game'
25 24
26 25