Cursor Location

Discussion in 'Python' started by Samantha, Oct 20, 2005.

  1. Samantha

    Samantha Guest

    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
     
    Samantha, Oct 20, 2005
    #1
    1. Advertising

  2. Samantha

    Tim Roberts Guest

    "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.
     
    Tim Roberts, Oct 21, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SKG

    ADO Cursor location

    SKG, Aug 11, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    513
    Scott M.
    Aug 11, 2004
  2. =?Utf-8?B?U2lkIFMu?=

    Absolute cursor location

    =?Utf-8?B?U2lkIFMu?=, Dec 8, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    11,268
    Ben Amada
    Dec 9, 2004
  3. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,378
    Bruce Barker
    Apr 5, 2005
  4. invy
    Replies:
    4
    Views:
    422
    CBFalconer
    Dec 28, 2006
  5. dmaziuk
    Replies:
    3
    Views:
    632
    Chris Gonnerman
    Jan 25, 2011
Loading...

Share This Page