PIL show moves focus

E

elbertlev

Hi!

I have an application where images (jpeg) have to be annotated by an
operator. I use PIL like:

import Image
im = Image.open(Path)
im.show()
raw_input(Path + ':')
.....

Python runs in a console window. Then show starts some application (in
my case "Windows picture and FAX viewer") and the picture goes to this
application window.
Then operator enteres the annotation as prompted by raw_input. So far
so good. I understand, that the approach is very minilalistic, but
suffisient for what has to be done.

Unfortunatelly after im.show focus moves to thw "Windows picture ..."
and stays there until I move it back using the mouse.

Question: is there any way of returning the input focus to the console
window?
 
K

kernel1983

Is the console necessary?
if not, you can easily disable the console by rename the ext to .pyw
 

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

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top