How do I attach event bindings to items on a canvas using Tkinter?

Posted by Ian on Stack Overflow See other posts from Stack Overflow or by Ian
Published on 2010-05-07T07:21:11Z Indexed on 2010/05/07 16:38 UTC
Read the original article Hit count: 155

Filed under:
|
|
|

If I'm using a canvas to display data and I want the user to be able to click on various items on the canvas in order to get more information or interact with it in some way, whats the best way of going about this?

Searching online I can find information about how to bind events to tags but that seems to be more indirect then what I want. I don't want to group items with tags, but rather have specific function calls when the user clicks specific items on the canvas.

© Stack Overflow or respective owner

Related posts about python

Related posts about tkinter