8bitsxlog
8bitsxlog

Reputation: 11

Run event on hovering on drawn line on canvas in python's tkinter gui

Is there any way to have an event for hovering/clicking on a drawn line on the Canvas widget (not the widget itself)?

Upvotes: 1

Views: 68

Answers (1)

saulspatz
saulspatz

Reputation: 5261

You can put a tag on the line and then bind Enter or Button-1 to the tag with the tag_bind method of the canvas widget.

Upvotes: 1

Related Questions