[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Problem combining pygame and wxwindows..



Stuart wrote:
Hello People.

I've lately been trying to get a pygame canvas inside wxwindows (I've been using one externally for quite a time but would like to combine them now), and have tried the windows examples existing out there on the web (under windows 2000, I've also tried linux with no difference), however these don't seem to work with current versions, as they simply segfault when I do the required set_mode((x,y)) to size the canvas, does anyone have any ideas?
I haven't had any segfaults on windows xp. Oh, but I have only tested on python 2.2, not 2.3. Have you tried this yet:
http://holton.ltc.vanderbilt.edu/wiki/wxGameCanvas

The demo requires pyODE, which currently only supports python 2.2, although someone has compiled their own pyODE for python 2.3, see:
http://home.ix.netcom.com/~ajs/download/


Also, I would love to be able to have multiple pygame canvases in one app, impossible? I've not tired this one too much as yet, but it would be very usefull to know if anyone else has tried.
I don't know much about the SDL library that Pygame uses, but it doesn't seem to support multiple windows. It needs something like what OpenGL has to switch between different drawing contexts (wglMakeCurrent, aglSetCurrentContext, CGLSetCurrentContext).