source: nagslang/events.py@ 18:9ecb1d222ee0

Last change on this file since 18:9ecb1d222ee0 was 18:9ecb1d222ee0, checked in by Simon Cross <hodgestar@…>, 8 years ago

Screens.

File size: 272 bytes
Line 
1"""Events to post."""
2
3from pygame import event
4import pygame.locals as pyl
5
6
7class Event(object):
8 TYPE = None
9
10 @classmethod
11 def post(cls, **data):
12 ev = event.Event(cls.TYPE, **data)
13 event.post(ev)
14
15
16class QuitEvent(Event):
17 TYPE = pyl.QUIT
Note: See TracBrowser for help on using the repository browser.