forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds …
…"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 <[email protected]> Co-authored-by: GiovanniL <[email protected]>
- Loading branch information
1 parent
8be7282
commit f738bd0
Showing
3 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Library/2023-10-25-16-37-13.gh-issue-75666.BpsWut.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Fix the behavior of :mod:`tkinter` widget's ``unbind()`` method with two | ||
arguments. 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. |