Mercurial > rinkhals
comparison gamelib/toolbar.py @ 541:450de9dfa106
Move gameboard event prodding into the widgets - better matches pgu internals
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 10:02:38 +0000 |
parents | ec5276cfe98b |
children | 84964077626a |
comparison
equal
deleted
inserted
replaced
540:882b582da618 | 541:450de9dfa106 |
---|---|
246 def resize(self, width=None, height=None): | 246 def resize(self, width=None, height=None): |
247 width, height = gui.Table.resize(self, width, height) | 247 width, height = gui.Table.resize(self, width, height) |
248 width = constants.TOOLBAR_WIDTH | 248 width = constants.TOOLBAR_WIDTH |
249 return width, height | 249 return width, height |
250 | 250 |
251 def event(self, e): | |
252 if not gui.Table.event(self, e): | |
253 return self.gameboard.event(e) | |
254 return True | |
255 | |
251 class DefaultToolBar(BaseToolBar): | 256 class DefaultToolBar(BaseToolBar): |
252 | 257 |
253 IS_DEFAULT = True | 258 IS_DEFAULT = True |
254 MOVE_SELECT_PERMITTED = True | 259 MOVE_SELECT_PERMITTED = True |
255 | 260 |