By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,994 Members | 1,285 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,994 IT Pros & Developers. It's quick & easy.

Cursor Location

P: n/a
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
Oct 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Samantha" <sa**********@hotmail.com> 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, ti**@probo.com
Providenza & Boekelheide, Inc.
Oct 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.