]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 6 Dec 2023 14:42:15 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 14:42:15 +0000 (16:42 +0200)
commitcc7e45cc572dd818412a649970fdee579417701f
treee307b22d849cad24d54eb6858e7335c25cacc798
parent828451dfde324f9499ffebc023a22b84dc5a125b
gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322)

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.

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]