gh-118760: Restore the default value of tkinter.wantobjects to 1 (GH-118784)

It was set to 2 in 65f5e586a1 (GH-98592).
This commit is contained in:
Serhiy Storchaka 2024-05-20 22:21:04 +03:00 committed by GitHub
parent 6b80a5b20f
commit e188527c34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 18 deletions

View file

@ -2177,16 +2177,6 @@ Changes in the Python API
returned by :meth:`zipfile.ZipFile.open` was changed from ``'r'`` to ``'rb'``.
(Contributed by Serhiy Storchaka in :gh:`115961`.)
* Callbacks registered in the :mod:`tkinter` module now take arguments as
various Python objects (``int``, ``float``, ``bytes``, ``tuple``),
not just ``str``.
To restore the previous behavior set :mod:`!tkinter` module global
:data:`!wantobject` to ``1`` before creating the
:class:`!Tk` object or call the :meth:`!wantobject`
method of the :class:`!Tk` object with argument ``1``.
Calling it with argument ``2`` restores the current default behavior.
(Contributed by Serhiy Storchaka in :gh:`66410`.)
Changes in the C API
--------------------