5 import pygame.event as pge
8 class NajaEvent(pge.Event):
13 def post(cls, **attributes):
14 event = pge.Event(pge.USEREVENT, naja_event_type=cls.TYPE,
20 return ev.type == pge.USEREVENT and ev.naja_event_type == cls.TYPE
23 class SceneChangeEvent(NajaEvent):
28 super(SceneChangeEvent, cls).post(scene=scene)