Cursor Location

S

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
 
T

Tim Roberts

Samantha said:
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.
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top