Re: Cursor Location

2005-10-20 Thread Tim Roberts
"Samantha" <[EMAIL PROTECTED]> wrote:
>
>Is there any code that would allow a person to click a location on the 
>screen and have that location saved for a future use? For example to imbed a 
>watermark on an image or text, etc.

Getting the point is easy.  If you are using wxPython, your EVT_LEFT_UP
handler gets a mouse event as a parameter:

def OnClick( self, evt ):
print evt.GetPositionTuple()

Once you have the tuple, it's up to you to save it somewhere.
-- 
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list


Cursor Location

2005-10-20 Thread Samantha
Is there any code that would allow a person to click a location on the 
screen and have that location saved for a future use? For example to imbed a 
watermark on an image or text, etc.

S 


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