Event for text in Tkinter text widget

后端 未结 3 1102
时光取名叫无心
时光取名叫无心 2020-12-19 20:20

May I know is it possible to create a event for a text in tkinter text widget? Example, I click on a word on text box, and a small window will pop out and give a brief defin

3条回答
  •  执笔经年
    2020-12-19 20:58

    Yes, it is possible. You can add a tag to a word or text region using the tag_add function, then use the tag_bind method (with a

提交回复
热议问题