Mercurial > rinkhals
diff gamelib/main.py @ 6:c0abad23a055
Add start, quit and toggle fullscreen buttons to menu.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 13:25:04 +0000 |
parents | 67b79658b047 |
children | 99c4f2226314 |
line wrap: on
line diff
--- a/gamelib/main.py Sun Aug 30 13:04:24 2009 +0000 +++ b/gamelib/main.py Sun Aug 30 13:25:04 2009 +0000 @@ -8,7 +8,7 @@ import pygame from pgu import gui -from pygame.locals import SWSURFACE, QUIT, KEYDOWN, K_ESCAPE +from pygame.locals import SWSURFACE, QUIT, KEYDOWN, K_ESCAPE, USEREVENT from mainmenu import MainMenu import constants @@ -23,6 +23,8 @@ done = True elif e.type is KEYDOWN and e.key == K_ESCAPE: done = True + elif e.type is USEREVENT: + print e.event else: app.event(e)