Mercurial > pyntnclick
comparison gamelib/main.py @ 124:97322b78d1c1
Minor style cleanups
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 17:55:47 +0200 |
parents | 5213b45fcc7e |
children | 7f6b11a0d404 |
comparison
equal
deleted
inserted
replaced
123:3b293e3b8829 | 124:97322b78d1c1 |
---|---|
27 parser.add_option("--no-sound", action="store_false", default=True, | 27 parser.add_option("--no-sound", action="store_false", default=True, |
28 dest="sound", help="disable sound") | 28 dest="sound", help="disable sound") |
29 opts, _ = parser.parse_args(args or []) | 29 opts, _ = parser.parse_args(args or []) |
30 return opts | 30 return opts |
31 | 31 |
32 | |
32 class MainShell(Shell): | 33 class MainShell(Shell): |
33 def __init__(self, display): | 34 def __init__(self, display): |
34 Shell.__init__(self, display) | 35 Shell.__init__(self, display) |
35 self.menu_screen = MenuScreen(self) | 36 self.menu_screen = MenuScreen(self) |
36 self.game_screen = GameScreen(self) | 37 self.game_screen = GameScreen(self) |