A couple of other notes:

Not just PDF, but a file in any non-pyglet format will cause this to
happen.  I think it's just a side-effect of load failing.  When I give
it a mp4 file, the defocus doesn't happen.

And when I run the same Python program in a non-X11 Apple Terminal
window, I don't see the defocus at all.

Bill

On Jul 16, 11:31 am, Bill Janssen <[email protected]> wrote:
> Here's an odd one.
>
> On Intel OS X 10.5.7, I'm using csh inside an X11 Emacs (Apple's x.org
> X11 2.3.3.1, GNU Emacs 23) shell to run a Python program which tries
> to decode a file of unknown format by running a series of decoders on
> it.  One of these is pyglet:  I call pyglet.media.load(FILE) to try to
> load the file, and if that fails, go on and try something else.
>
> I've noticed that when I do this with a PDF file, my Emacs window is
> defocussed when the pyglet load fails, and remains unfocussed until
> the Python program exits; then the focus comes back to the Emacs
> window.  X11 remains as the frontmost application; it's not switching
> away from X11, but it is switching focus away from that window.
>
> Does pyglet try to talk to the window system when a load fails,
> perhaps?  Is that what's going on?
--~--~---------~--~----~------------~-------~--~----~
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