mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
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:
parent
6b80a5b20f
commit
e188527c34
4 changed files with 9 additions and 18 deletions
|
|
@ -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
|
||||
--------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue