开发者

Master list of all Tkinter Events?

开发者 https://www.devze.com 2023-01-24 17:38 出处:网络
I\'m searching for a master list of all Tkinter events.开发者_运维技巧 I\'ve been googling for such a list all all morning without success. Any references for such a list would be appreciated.There is

I'm searching for a master list of all Tkinter events.开发者_运维技巧 I've been googling for such a list all all morning without success. Any references for such a list would be appreciated.


There is no such list as far as I know. There is a list of most events on the bind man page, but each widget can itself issue events unique to that widget (eg: <<ListboxSelect>>). Those are documented on the man page for each widget.


We had this discussion on the tkinter mailing list, and found the following:

  • Event Types, as listed in the Tk documentation.
  • Virtual events are not listed there. For virtual events, check individual widget help pages.

Summarized in the wiki: tkinter:Events


I found a more complete listing of known events, including some marked as "Undocumented", in Python's own tkinter module. Start here, and scroll down to class EventType: https://github.com/python/cpython/blob/master/Lib/tkinter/init.py

Whether that's the penultimate list or not....who knows. It seems Tk/Tkinter documentation is spread fairly thinly, like vegemite on toast, across the entirety of the Internet.

0

精彩评论

暂无评论...
验证码 换一张
取 消