wxPython already has a GLCanvas which sets up an OpenGL window and
pyglet should draw to whatever context is current so this should be
unnecessary beyond calling the pyglet event loop I guess.

Mark

On Jul 22, 8:36 am, Ricardo Pedroso <[email protected]>
wrote:
> In an attempt to incorporate pyglet in a wxpython window I came up
> with this (see attach)
>
> It's working more or less ok.
>
> It's only for windows and linux, since I don't have access to a Mac.
>
> It's tested with:
> Linux:
>  python 2.6, pyglet 1.1.4, wxPython 2.6 and wxPython 2.8
>
> Windows:
>  python 2.6, pyglet 1.1.4, wxPython 2.8
>
> Basically what I've done was subclassing wx.Window and
> pyglet.window.Window and do some platform specific "magic" (most grad
> from pyglet subversion wxtest.py). This specific "magic" is
> "controlled" by if's. It will probably be better to seperate them like
> in wxtest.py
>
> I also subclass pyglet.app.EventLoop.
>
> I'm posting here in the hope that someone with more pyglet knowledge
> than me can improve it - at least try to make a mac "version".
>
> Ricardo
>
>  wxglet.tar.gz
> 14KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to