Stealing focus: PIL

D

damonwischik

I'm using the Python Image Library (PIL) for Python 2.4.

If I have an image and I show it
from PIL import Image
im = Image.new('RGB',100,100)
im.show()
then the output window steals focus. It's very handy to use
an image to show the progress of execution for my program,
but the computer is unusable when focus keeps on being stolen
every few seconds. How can I prevent Image.show() from stealing
focus?

Damon.
 
F

Fredrik Lundh

I'm using the Python Image Library (PIL) for Python 2.4.

If I have an image and I show it
from PIL import Image
im = Image.new('RGB',100,100)
im.show()
then the output window steals focus. It's very handy to use
an image to show the progress of execution for my program,
but the computer is unusable when focus keeps on being stolen
every few seconds. How can I prevent Image.show() from stealing
focus?

PIL runs an external utility [1] to display the image, so this is more of
a window manager issue than a PIL issue.

</F>

1) "xv" by default, but this may be changed by distributors.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top