]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Dec 2023 15:12:37 +0000 (16:12 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 15:12:37 +0000 (15:12 +0000)
commitf189bd3e839f95396ca4db3295883976c510ef0d
tree71ec21fdf3728bc57e5b40bfbe34fb0093cdbb6f
parent399a3f2e1e428710fa4dc5c54841e179dc8e1028
[3.12] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322) (GH-112802)

Previously, "widget.unbind(sequence, funcid)" destroyed the current binding
for "sequence", leaving "sequence" unbound, and deleted the "funcid"
command.

Now it removes only "funcid" from the binding for "sequence", keeping
other commands, and deletes the "funcid" command.
It leaves "sequence" unbound only if "funcid" was the last bound command.

(cherry picked from commit cc7e45cc572dd818412a649970fdee579417701f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2023-10-25-16-37-13.gh-issue-75666.BpsWut.rst [new file with mode: 0644]