I am working on a project in python using pygame and pyro. I can send data, functions, classes, and the like easily. However, I cannot send a surface across the wire without it dying on me in transit.
The server makes a surface in the def __init__
of the class being accessed across the wire:
self.screen = pygame.display.set_mode(SCREENRECT.size, NOFRAME)
On the server, the screen prints as Surface(800x800x32 SW)
but when retrieved by the client it is Surface(Dead Display)
.
Something to note though. I get a dead display when I use an accessor function to get my screen. If I use print Player.screen
to get the variable I instead get what seems to be a pyro pointer to the screen: <Pyro.core._RemoteMethod instance at 0x02B7B7B0>
. Maybe I can dereference this?
More than likely I am being thick, does anyone have some insight? Thanks. :)