[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Re: pygame and wxPython under windows
- To: pygame-users@seul.org
- Subject: [pygame] Re: pygame and wxPython under windows
- From: Pete Shinners <pete@shinners.org>
- Date: Tue, 08 Jul 2003 09:35:52 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 08 Jul 2003 12:38:08 -0400
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030618
Tim (mithro) Ansell wrote:
> I'm trying to use pygame inside a wxPython window. This works well under
> wxGTK, however when I do the same under windows it doesn't work.
>
> window = pyGame.display.set_mode(self.GetClientSizeTuple())
>
> Pygame Parachute Traceback:
> File "winSDL.py", line 56, in OnSize
>
> I've tried any value in the set_mode and it still crashes.
on windows you must use the 'windib' sdl backend, the 'directx' one
tends to crash. use something like this before pygame.init()
if sys.platform == 'win32':
os.environ['SDL_VIDEODRIVER'] = 'windib'