Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Master list of all Tkinter Events?

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.

like image 612
Malcolm Avatar asked Nov 13 '10 13:11

Malcolm


3 Answers

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.

like image 144
Kumba Avatar answered Nov 08 '22 17:11

Kumba


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.

like image 44
Bryan Oakley Avatar answered Nov 08 '22 15:11

Bryan Oakley


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

like image 21
LionKimbro Avatar answered Nov 08 '22 17:11

LionKimbro