mercredi 13 juillet 2016

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


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, what's 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.


Aucun commentaire:

Enregistrer un commentaire