Diez,
> Won't be easy - a toolkit (like tkinter) will only capture your mouse 
> events that are directed towards it's own windows.
That is my exact problem. I want to have the mouse event captured from 
another application window. In this case an image window opened in Paint 
Shop Pro that by the way uses Python to make scripts. I would like to be 
able to click on the image and get the X,Y positions. I have been able to 
get the X,Y from Tkinter own window as you say. Once I have those positions 
I can use them in a Paint Shop Pro script.
Thanks for your reply. Do you have any advise as to how I can do what I am 
trying or is it, in a practical matter, impossible.
S

"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Samantha wrote:
>> I will be using Tkinter. All I need is a way to get the X,Y position from 
>> a mouse click. I am trying to have an image loaded to click on, but that 
>> seems to be a problem. So if I can just get the position from the screen 
>> of a graphics program, showing an image, it will work for me.
>
> Won't be easy - a toolkit (like tkinter) will only cpature your mous 
> events that are directed towards it's own windows. You might be able to 
> convince your program to collect mouse-events outside for a short period 
> of time - like snapshot programs do - but that will reqiure pretty 
> complicated, OS-dependant coding. Certainly way more complicated than 
> loading an image using tkinter. Better tell us what's giving you a hard 
> time there.
>
> Diez 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to