Mercurial > rinkhals
comparison gamelib/toolbar.py @ 538:ec5276cfe98b
put back code to highlight move/select button appropriately
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 08:59:00 +0000 |
parents | d16ed2a8a33e |
children | 450de9dfa106 |
comparison
equal
deleted
inserted
replaced
537:c23e2bd07247 | 538:ec5276cfe98b |
---|---|
295 ## Dear pgu, is there a better way to get the current height? | 295 ## Dear pgu, is there a better way to get the current height? |
296 #_cur_width, cur_height = self.resize() | 296 #_cur_width, cur_height = self.resize() |
297 #self.add_spacer(570-cur_height) | 297 #self.add_spacer(570-cur_height) |
298 self.fin_tool = self.add_tool("Finished Day", self.day_done) | 298 self.fin_tool = self.add_tool("Finished Day", self.day_done) |
299 | 299 |
300 if self.gameboard.selected_tool in [constants.TOOL_PLACE_ANIMALS, constants.TOOL_SELECT_CHICKENS]: | |
301 self.highlight_move_select_button() | |
302 | |
303 def highlight_move_select_button(self): | |
304 self._select_tool.group.value = self._select_tool.value | |
305 self._select_tool.pcls = "down" | |
306 | |
300 def add_building_toolbar(self): | 307 def add_building_toolbar(self): |
301 self.gameboard.change_toolbar(BuildingToolBar(self.gameboard, | 308 self.gameboard.change_toolbar(BuildingToolBar(self.gameboard, |
302 width=self.style.width)) | 309 width=self.style.width)) |
303 | 310 |
304 def add_sell_toolbar(self): | 311 def add_sell_toolbar(self): |