Mercurial > pyntnclick
comparison gamelib/gamescreen.py @ 129:4223d66d88b4
Cursor change when you select a Tool
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 24 Aug 2010 18:36:31 +0200 |
parents | a2f6e975af67 |
children | 0530547a131f |
comparison
equal
deleted
inserted
replaced
128:a2f6e975af67 | 129:4223d66d88b4 |
---|---|
127 self.remove(widget) | 127 self.remove(widget) |
128 | 128 |
129 def start_game(self): | 129 def start_game(self): |
130 self._clear_all() | 130 self._clear_all() |
131 # TODO: Randomly plonk the state here for now | 131 # TODO: Randomly plonk the state here for now |
132 self.state = initial_state() | 132 self.state = initial_state(self) |
133 self.state_widget = StateWidget(self.state) | 133 self.state_widget = StateWidget(self.state) |
134 self.add(self.state_widget) | 134 self.add(self.state_widget) |
135 | 135 |
136 self.popup_menu = PopupMenu(self.shell) | 136 self.popup_menu = PopupMenu(self.shell) |
137 self.menubutton = PopupMenuButton('Menu', | 137 self.menubutton = PopupMenuButton('Menu', |