]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Feb 2024 16:43:56 +0000 (17:43 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 16:43:56 +0000 (16:43 +0000)
commit4548ae7e65a919516939548932644a16a2bdc329
treedaf71a4853e43f0c6f83e93103f546dbb4f33383
parent222ccbc7d682016450421f0992333f713c8a38ba
[3.12] gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds "funcid" (GH-113955) (GH-114997)

Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and
Canvas widgets destroyed the current binding for "sequence", leaving
"sequence" unbound, and deleted the "funcid" command.

Now they remove only "funcid" from the binding for "sequence", keeping
other commands, and delete the "funcid" command.
They leave "sequence" unbound only if "funcid" was the last bound command.
(cherry picked from commit 7e42fddf608337e83b30401910d76fd75d5cf20a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2024-01-11-20-47-49.gh-issue-113951.AzlqFK.rst [new file with mode: 0644]