473,383 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

PIL show moves focus

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?

Jun 12 '06 #1
1 1585
Is the console necessary?
if not, you can easily disable the console by rename the ext to .pyw

el*******@hotmail.com wrote:
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?


Jun 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: David | last post by:
I have something analogous to this: <a href="#content">jump to content</a> <div id="content"> <h1>blah<h1> <a>blah</a> </div>
0
by: Stephen Bedford | last post by:
I am developing an application that is primarily keyboard not mouse driven. Navigation is very difficult within some controls (list boxes, radio groups etc) unless the focus rectangle is visible. ...
1
by: DomGo | last post by:
Hi, I try to open a form, that automatically loses focus to the window, that had the focus immediatly before the new form has been opened. The new form is topmost and displays a message only for...
3
by: CLH | last post by:
I've written a project that uses a notify icon. The program periodically checks my SQL server, and when certain criteria are met, it pops up a reminder that a task needs to be completed. So far,...
1
by: Daniel Friend | last post by:
Hi have a window (FormBorderStyle=NONE) and the form is a MDI child. For some reason the form is not getting focus. I have tried the following code and nothing seems to work. sForm.Show()...
3
by: jab3 | last post by:
Hello. I"m new to this group, and to JavaScript in general, so please forgive me if I breach local etiquette. I'm trying to implement some client-side 'dynamic' validation on a form. I'm having...
1
by: osmarjunior | last post by:
I override the OnShown event of a form and call both methods Select() and Focus() of a RadioButton. The RadioButton is selected, but the focus rect is not visible. If I press Tab key to exit the...
3
by: Johnny Jörgensen | last post by:
I've a form that opens a tool window. The problem is that when the tool window is opened, the main form itself passes focus to the toolwindow. What I want and need is a toolwindow that works like...
3
by: agarwalsunitadhn | last post by:
hello i am working in C#.net. I want to know how to close one form and show another one. I had done the following code this.Hide(); MainForm frm = new...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.