Ignore:
Timestamp:
Aug 30, 2009, 1:25:04 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@7
Message:

Add start, quit and toggle fullscreen buttons to menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/main.py

    r5 r6  
    99import pygame
    1010from pgu import gui
    11 from pygame.locals import SWSURFACE, QUIT, KEYDOWN, K_ESCAPE
     11from pygame.locals import SWSURFACE, QUIT, KEYDOWN, K_ESCAPE, USEREVENT
    1212
    1313from mainmenu import MainMenu
     
    2424            elif e.type is KEYDOWN and e.key == K_ESCAPE:
    2525                done = True
     26            elif e.type is USEREVENT:
     27                print e.event
    2628            else:
    2729                app.event(e)
Note: See TracChangeset for help on using the changeset viewer.