Mercurial > rinkhals
comparison gamelib/toolbar.py @ 548:27c09c58d89d
Remove gameboard and dialog event flow hacks.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 11:25:56 +0000 |
parents | e57a0cf38cc7 |
children | a8dde729000a |
comparison
equal
deleted
inserted
replaced
547:1456bf2ff02e | 548:27c09c58d89d |
---|---|
258 def resize(self, width=None, height=None): | 258 def resize(self, width=None, height=None): |
259 width, height = gui.Table.resize(self, width, height) | 259 width, height = gui.Table.resize(self, width, height) |
260 width = constants.TOOLBAR_WIDTH | 260 width = constants.TOOLBAR_WIDTH |
261 return width, height | 261 return width, height |
262 | 262 |
263 def event(self, e): | |
264 if not gui.Table.event(self, e): | |
265 return self.gameboard.event(e) | |
266 return True | |
267 | 263 |
268 class DefaultToolBar(BaseToolBar): | 264 class DefaultToolBar(BaseToolBar): |
269 | 265 |
270 IS_DEFAULT = True | 266 IS_DEFAULT = True |
271 MOVE_SELECT_PERMITTED = True | 267 MOVE_SELECT_PERMITTED = True |