]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 7 May 2024 12:07:32 +0000 (15:07 +0300)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 12:07:32 +0000 (12:07 +0000)
commit65f5e586a1239ed1a66d8284773d7b02ce40e480
tree2df752dc79daf89283ed5b01c1b9a8a37abed9a3
parentb60d4c0d53b6aafbf4a6e560b4cb6f1d5c7240c8
gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)

Callbacks registered in the tkinter module now take arguments as
various Python objects (int, float, bytes, tuple), not just str.
To restore the previous behavior set tkinter module global wantobject to 1
before creating the Tk object or call the wantobject() method of the Tk object
with argument 1.
Calling it with argument 2 restores the current default behavior.
Doc/whatsnew/3.13.rst
Lib/idlelib/redirector.py
Lib/test/test_tcl.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2022-10-24-12-05-19.gh-issue-66410.du4UKW.rst [new file with mode: 0644]
Modules/_tkinter.c
Modules/clinic/_tkinter.c.h