Skip to content

[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322)#112801

Merged
serhiy-storchaka merged 1 commit intopython:3.11from
miss-islington:backport-cc7e45c-3.11
Dec 6, 2023
Merged

[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322)#112801
serhiy-storchaka merged 1 commit intopython:3.11from
miss-islington:backport-cc7e45c-3.11

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 6, 2023

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 cc7e45c)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: GiovanniL 13402461+GiovaLomba@users.noreply.github.com

…"funcid" (pythonGH-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.

(cherry picked from commit cc7e45c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants