2 from sys
import modules
14 self
= modules
[__name__
]
16 for i
, name
in enumerate(events
) :
17 eventType
= pygame
.USEREVENT
+i
18 eventNames
[eventType
] = name
19 setattr(self
, name
, eventType
)
42 for name
in pygame_events
:
43 eventNames
[getattr(pygame
, name
)] = name