Master list of all Tkinter Events?

前端 未结 3 1715
旧巷少年郎
旧巷少年郎 2020-12-31 14:33

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 woul

相关标签:
3条回答
  • 2020-12-31 15:02

    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 讨论(0)
  • 2020-12-31 15:12

    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.

    0 讨论(0)
  • 2020-12-31 15:13

    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

    0 讨论(0)
提交回复
热议问题