4 import pygame.locals as pgl
7 class TabakEvent(object):
12 def post(cls, **attributes):
13 assert set(attributes.keys()) == cls.ATTRIBUTES
14 ev = pygame.event.Event(
15 pgl.USEREVENT, tabak_type=cls.TYPE, **attributes)
20 return (ev.type == pgl.USEREVENT and ev.tabak_type == cls.TYPE)
23 class QuitEvent(TabakEvent):
27 class SceneChangeEvent(TabakEvent):
29 ATTRIBUTES = {'scene'}