Re: [pygame] Embedding pygame into wxPython
Alexander 'boesi' Bösecke wrote: Hi Oh man I've must been blind, I've used pygame 1.6 and the main problem disappears with pygame 1.6.2. So it works on XP and W2k now. But the problem with py2exe is still there - the executable crashes with an "abnormal program termination" when pygame 1.6.2 is used. And my question exists further: Why is there no pygame 1.7 for Python2.3? Am 13.07.2006 17:26:19 schrieb Kamilche: if sys.platform == 'win32': os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23' os.environ['SDL_VIDEODRIVER'] = 'windib' This doesn't help. Is there a complete list of environment variables for SDL? I've only found ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars, but SDL_VIDEO_WINDOW_POS isn't in this list. thx & cu boesi http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars
Re: [pygame] Embedding pygame into wxPython
On Mon, 2006-07-17 at 13:08 +0200, Alexander 'boesi' Bösecke wrote: > And my question exists further: Why is there no pygame 1.7 for Python2.3? Python 2.4 requires a different MSCV compiler than older releases. Most people can build one or the other, but not both. If you have MSVC5 it is simple to build your own Pygame, once you have the dependencies.
Re: [pygame] Embedding pygame into wxPython
Hi Oh man I've must been blind, I've used pygame 1.6 and the main problem disappears with pygame 1.6.2. So it works on XP and W2k now. But the problem with py2exe is still there - the executable crashes with an "abnormal program termination" when pygame 1.6.2 is used. And my question exists further: Why is there no pygame 1.7 for Python2.3? Am 13.07.2006 17:26:19 schrieb Kamilche: > if sys.platform == 'win32': > os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23' > os.environ['SDL_VIDEODRIVER'] = 'windib' This doesn't help. Is there a complete list of environment variables for SDL? I've only found ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars, but SDL_VIDEO_WINDOW_POS isn't in this list. thx & cu boesi
Re: [pygame] Embedding pygame into wxPython
Darn, I had that error before too, in Pygame, I wish I could recall what caused that to happen! It was something totally unexpected I think it was this: I had to wrap the environ variables up in an if statement, because otherwise it would crash my Mac: if sys.platform == 'win32': os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23' os.environ['SDL_VIDEODRIVER'] = 'windib' Anyways, try commenting out your environ variable settings, see if that helps... thought that might get you the 'DirectX' engine on older versions of Pygame. --Kamilche
Re: [pygame] Embedding pygame into wxPython
Hi Am 10.07.2006 17:05:53 schrieb Peter Shinners: > On windows, when you set the SDL_WINDOWID environment variable. Also set > SDL_VIDEODRIVER to "windib". The directx backend crashes pretty good > when embedded. I think the newest of the new SDL's defaults to windib > instead of directx. I think it was generally agreed apon that the > directx mode (using directx 5) was a bit crusty. Well in the example, I've send in the last mail I had set SDL_VIDEODRIVER to windib. On W2k its default is windib, on XP it is directx and that crashes with another error. Btw I'm using directx 9c on W2k and XP. And I've found another problem related the one above. When I create with py2exe an executable out of the script from my first mail and using pygame 1.6 and python 2.3.5, the programm crashes on XP and W2k with a message box: "MS Visual C++ Runtime Library" - "This application has requested the Runtime to terminate it in an unusual way" The problem is the line "pygame.display.setmode(...)" - if I remove it, the executable doesn't crash - on XP and W2k. If I create the executable with pygame 1.7 and python 2.4.2 it works on XP and W2k. I've used py2exe 0.6.5 in both cases. I'd like to test it with pygame 1.7 on python 2.3.5, but ... I need python 2.3 because I use another module, that's only avaible for python 2.3 cu boesi
Re: [pygame] Embedding pygame into wxPython
On Mon, 2006-07-10 at 08:55 +0200, Alexander 'boesi' Bösecke wrote: > I'd like to embed a pygame surface into a wxPython-Panel. With the code > from [1] it's no big deal. > > The attached code works on WinXP and W2k with Python 2.4.2 and pygame > 1.7.1. And it works on WinXP with Python 2.3.5 and pygame 1.6. > > But on W2k it crashes with Python 2.3.5 and pygame 1.6 with the > following error: > > ---snip--- > Pygame Parachute Traceback: > File "simple_pygame.py", line 15, in __init__ > Fatal Python error: (pygame parachute) Segmentation Fault > > abnormal program termination > ---snap--- On windows, when you set the SDL_WINDOWID environment variable. Also set SDL_VIDEODRIVER to "windib". The directx backend crashes pretty good when embedded. I think the newest of the new SDL's defaults to windib instead of directx. I think it was generally agreed apon that the directx mode (using directx 5) was a bit crusty.
[pygame] Embedding pygame into wxPython
Hi I'd like to embed a pygame surface into a wxPython-Panel. With the code from [1] it's no big deal. The attached code works on WinXP and W2k with Python 2.4.2 and pygame 1.7.1. And it works on WinXP with Python 2.3.5 and pygame 1.6. But on W2k it crashes with Python 2.3.5 and pygame 1.6 with the following error: ---snip--- Pygame Parachute Traceback: File "simple_pygame.py", line 15, in __init__ Fatal Python error: (pygame parachute) Segmentation Fault abnormal program termination ---snap--- Of course it doesn't crash, if I remove line 12 os.environ['SDL_WINDOWID'] = str(wndCam.GetHandle()) If I remove line 15 pygame.display.set_mode((640, 480)) it gives this error: ---snip--- Pygame Parachute Traceback: File "C:\PROGRA~1\Python23\Lib\site-packages\wx-2.6-msw-un icode\wx\_core.py", line 8731, in Show ---snap--- If I remove the lines 15&21 pygame.display.set_mode((640, 480)) ... frame.Show() it doesn't give a error, but of course than the app doesn't show anything. Is there any reason, why there is no precompiled version of pygame 1.7.1 for python 2.3? And how do I unfailing embed a pygame surface into a wxPython-app with Python 2.3? Are there other obstacles that I have to respect? Thanks for your help cu boesi [1] http://wiki.wxpython.org/index.cgi/IntegratingPyGame PS: I'm using wxPython 2.6.3.2 on all systems simple_pygame.py Description: Binary data