Canvas clicking stuff

T

Tuvas

I have a picture that is being displayed on a canvas interface, that I
want to do the following. When a mouse button is clicked on the canvas,
I want to pass to a function the X and Y coordinates of where this
mouse button was pushed. Futhermore, and I don't know if this is
possible, I would like to have a function that passes the same data
without a mouse button being clicked, or perhaps differentiating
between left and right clicks. Thanks for the help!
 
T

Tuvas

I guess I should have mentioned that the canvas is a Tkinter canvas,
but, well, I guess that could be infered.
 

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

No members online now.

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,108
Latest member
AmeliaAmad

Latest Threads

Top