So I've come across what seems like a strange problem with
interactions between Pyglet and wxPython on OS X. My apologies if
this isn't the right forum for this - feel free to direct me elsewhere
if it's not...
I've got a very simple program where a thread creates a wx App and
Frame. This thread is started from the main thread. When importing
(but not even using) pyglet.gl.gl on OS X, the event loop seems to
hang - I just get a spinning beach ball when mousing over the app.
When not importing pyglet.gl.gl, or when launching the App / Frame
from the main thread instead of the second Thread, everything works
fine. Here's the code snippet:
import wx
from threading import Thread
from pyglet.gl.gl import * # comment this out and it works
class Foo(Thread):
def run(self):
app = wx.PySimpleApp(0)
frame = wx.Frame(None, -1, "G'day!")
app.SetTopWindow(frame)
frame.Show()
app.MainLoop()
f = Foo()
f.start() # do f.run() and it works (even with import above)
Any ideas what the problem could be?
Thanks!
Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---