On 14/07/2009, at 10:14 AM, David Eyk wrote:
> On Jul 12, 10:00 pm, Richard Jones <[email protected]> wrote:
>> To disable the shadow context set the environment variable
>> "PYGLET_SHADOW_WINDOW=false"
>
> Thanks. That takes care of the extra window, but keyboard events are
> still getting intercepted. (Ctrl+C doesn't even go through--I have to
> kill the process from somewhere else.)
Actually they probably are still going through but Python's threading
model might be killing you. To demonstrate, the following program
works without a window:
import pyglet
def hello(*args):
print 'hello'
pyglet.clock.schedule_interval(hello, 1)
print 'running'
pyglet.app.run()
but will only die from a control-C when the hello() function is fired
(usually straight afterwards).
Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---