Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Brian Fisher
The integration sample (at the bottom of the page link below) you mentioned in your original post demonstrates the pygame/SDL paint in any window feature (see the SDLPanel class) http://wiki.wxpython.org/IntegratingPyGame Even though that sample makes two windows (a top-level frame with a child SD

Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Brian Fisher
motherhamster doesn't integrate with wx in the way the poster is asking about - it puts seperate top level wx windows in the same process as the pygame window by either sharing the main message pump with yield calls or by spawning a new thread for the wx's loop. Also, the motherhamster approach ki

Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Juan José Alonso.
can check the motherhamster project in the pygame forge, it use wx. http://www.pygame.org/project/657/?release_id=1139 2008/3/5, Joan Planas Illas <[EMAIL PROTECTED]>: > > > > En/na Sibtey Mehdi ha escrit: > > > > > > > > > > > > Ok, but is there any way to tell PyGame to paint any window, I m

Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Joan Planas Illas
En/na Sibtey Mehdi ha escrit: Ok, but is there any way to tell PyGame to paint any window, I mean by passing the window handle to pygame. Try this: os.environ['SDL_WINDOWID'] = window_id -- Joan Planas Illas Dpto I+D | R&D department [EMAIL PROTECTED] Skype id: joanplanaspv Concat

Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Ian Mallett
I think there is a way to do it; it is just messy. I think I might have some code somewhere...

RE: [pygame] how to display pygame graphics within a wxpython window

2008-03-05 Thread Sibtey Mehdi
Ok, but is there any way to tell PyGame to paint any window, I mean by passing the window handle to pygame. hi, Using pygame with wxpython is not supported. See this page for details: http://www.pygame.org/wiki/Gui cheers, On Wed, Mar 5, 2008 at 4:01 PM, Sibtey Mehdi <

Re: [pygame] how to display pygame graphics within a wxpython window

2008-03-04 Thread René Dudfield
hi, Using pygame with wxpython is not supported. See this page for details: http://www.pygame.org/wiki/Gui cheers, On Wed, Mar 5, 2008 at 4:01 PM, Sibtey Mehdi <[EMAIL PROTECTED]> wrote: > > > > > Hi > > How to display pygame graphics within a wxpython window. I have > tried the last

[pygame] how to display pygame graphics within a wxpython window

2008-03-04 Thread Sibtey Mehdi
Hi How to display pygame graphics within a wxpython window. I have tried the last example on http://wiki.wxpython.org/IntegratingPyGame but it opens the two separate window one for pygame one for frame. I want to create one frame that can use the pygame drawing functionality. Thank