]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:47:03 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 16:47:03 +0000 (16:47 +0000)
commitf18341fa4e6612ee72657fc2238f0e4271867c61
tree396dbbdca6c224f68bec830530bf978445669feb
parentf8cba751e25e14aa59ea79df65f885c3aaba1865
[3.11] gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds "funcid" (GH-113955) (GH-114998)

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/tkinter/__init__.py
Lib/tkinter/test/test_tkinter/test_misc.py
Misc/NEWS.d/next/Library/2024-01-11-20-47-49.gh-issue-113951.AzlqFK.rst [new file with mode: 0644]