ab218f8df9a9ac5ac6146aeaa5feedd4e94fd083
5 from pygame
.event
import Event
7 class PickleableEvent(object):
8 "A pygame.Event that can be serialized."
10 def __init__(self
,type,dict):
11 self
.__dict
__ = copy
.copy(dict)
13 self
.event
= Event(self
.type,dict)
15 def __getstate__(self
):
18 d
.append(copy
.copy(self
.event
.dict))
21 def __setstate__(self
, d
):
22 self
.__dict
__ = copy
.copy(d
[1])
24 self
.event
= Event(d
[0],d
[1])