◐ Shell
clean mode source ↗

gh-66410: Do not stringify arguments of Tkinter callback by serhiy-storchaka · Pull Request #98592 · python/cpython

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.

@serhiy-storchaka linked an issue

Oct 24, 2022

that may be closed by this pull request

@serhiy-storchaka

@serhiy-storchaka

@serhiy-storchaka

@serhiy-storchaka

SonicField pushed a commit to SonicField/cpython that referenced this pull request

May 8, 2024
…nGH-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.

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

May 8, 2024

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 20, 2024

estyxx pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024