I tried posting this question before, but it appears to not have made
it past moderation, somehow:
Pyglet exits unexpectedly and silently if I do this:
from multiprocessing import Process
import pyglet
from pyglet.gl import *
def myProcess():
w = pyglet.window.Window()
pyglet.app.run()
p = Process(target = myProcess)
p.start()
while p.is_alive():
pass
It works as expected (opens an empty window and sits there) if I
change it to (note the third import):
from multiprocessing import Process
import pyglet
from pyglet import gl
def myProcess():
w = pyglet.window.Window()
pyglet.app.run()
p = Process(target = myProcess)
p.start()
while p.is_alive():
pass
But if I add a pyglet.window.Window subclass:
from multiprocessing import Process
import pyglet
from pyglet import gl
class foo(pyglet.window.Window):
pass
def myProcess():
w = pyglet.window.Window()
pyglet.app.run()
p = Process(target = myProcess)
p.start()
while p.is_alive():
pass
It fails as it does in the first case. Thanks for any help :)
--
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.