Mercurial > rinkhals
diff 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 |
line wrap: on
line diff
--- a/gamelib/toolbar.py Sat Nov 28 09:58:40 2009 +0000 +++ b/gamelib/toolbar.py Sat Nov 28 10:02:38 2009 +0000 @@ -248,6 +248,11 @@ width = constants.TOOLBAR_WIDTH return width, height + def event(self, e): + if not gui.Table.event(self, e): + return self.gameboard.event(e) + return True + class DefaultToolBar(BaseToolBar): IS_DEFAULT = True