]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-47655: Add support for user data and detail of Tk events to tkinter (GH-7142)
authorMatthias Kievernagel <mkiever@web.de>
Wed, 25 Feb 2026 08:34:00 +0000 (08:34 +0000)
committerGitHub <noreply@github.com>
Wed, 25 Feb 2026 08:34:00 +0000 (10:34 +0200)
commitf8ce51a52209aa04c781d20fe0778247df5a465b
treec2d8889a8b0a01e64364ac8cf662ca5da4e1d270
parent1ac9d138ae0563f2829ba91efe7989af507f47e0
gh-47655: Add support for user data and detail of Tk events to tkinter (GH-7142)

Expose the %d substitution as the tkinter.Event attributes:

* "detail" for Enter, Leave, FocusIn, FocusOut, and ConfigureRequest events
* "user_data" for virtual events

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/whatsnew/3.15.rst
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2018-05-11-12-26-16.bpo-3405.CacMw9.rst [new file with mode: 0644]