]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:04:07 +0000 (16:04 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 15:04:07 +0000 (15:04 +0000)
commit010819a29552eca7020e497e86c7a0bc28bba46a
tree768ff7a0fc21f8e08d248afbcaf4edf5c2bf9198
parent8be7282f29a9746fbfc425172736d4bba6f707a7
[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322) (GH-112801)

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/tkinter/__init__.py
Lib/tkinter/test/test_tkinter/test_misc.py
Misc/NEWS.d/next/Library/2023-10-25-16-37-13.gh-issue-75666.BpsWut.rst [new file with mode: 0644]