Thanks. I ran that file earlier but I figured the error meant that it
was an abandoned project.

Dave

On Feb 9, 3:21 pm, Alex Holkner <[email protected]> wrote:
> On Tue, Feb 10, 2009 at 5:51 AM, Simon Veith Reinholt
>
>
>
> <[email protected]> wrote:
>
> > If you get the source (eg. from SVN) there's a very simple example of
> > a pyglet/wxPython integration in the source/experimental/ folder.
>
> > I've successfully used this example as a base for an editor, even
> > using XRC. I was using Windows, so I don't know about performance on
> > other os'.
>
> > If you already have a working wxPython application, or have previous
> > experience with it, you can simply consider it a custom widget and
> > drop it in your existing codebase. In the example, the TestFrame is
> > your main application window, and the TestCanvas is where you do your
> > OpenGL/pyglet magic.
>
> > However, I don't know how this integrates with a game loop, meaning
> > that in the example there is no update function scheduled, so you will
> > only get to redraw your opengl context when the operating system finds
> > it is time to redraw your window. I'm sure this can be worked around
> > somehow, but for an editor it is not necessary, and actually a
> > blessing. :)
>
> > The example from the pyglet sourc is called wxtest.py but the current
> > SVN version is a little out of date. You'll have to change this line:
>
> > label = pyglet.text.Label('Hello, world', font_size=48,
> > valign='center', halign='center')
>
> > into this:
>
> > label = pyglet.text.Label('Hello, world', font_size=48,
> > anchor_x='center', anchor_y='center')
>
> Thanks, fixed in r2438.
>
> > I guess I never got at chance to say thank you to whoever created this
> > excellent wxpython example in the experimental folder. So, thanks!
> > Great work! :)
>
> No problem.  Note that the integration only works on Windows/Linux (not OS X).
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
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