Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Cursor Location

Reply
Thread Tools

Cursor Location

 
 
Samantha
Guest
Posts: n/a
 
      10-20-2005
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


 
Reply With Quote
 
 
 
 
Tim Roberts
Guest
Posts: n/a
 
      10-21-2005
"Samantha" <> 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,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to tell if cursor is sqlite.Cursor or psycopg2.Cursor dmaziuk Python 3 01-25-2011 04:52 AM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
Declare Cursor error while implementing SCROLL CURSOR invy C Programming 4 12-28-2006 02:35 PM
Changing DEFAULT cursor to WAIT cursor in ASP =?Utf-8?B?VG9tYXMgS2VwaWM=?= ASP .Net 1 04-05-2005 07:42 PM
ADO Cursor location - HELP MCSD 3 11-12-2003 08:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57