-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbi…
…nds "funcid" (GH-113955) Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and Canvas widgets destroyed the current binding for "sequence", leaving "sequence" unbound, and deleted the "funcid" command. Now they remove only "funcid" from the binding for "sequence", keeping other commands, and delete the "funcid" command. They leave "sequence" unbound only if "funcid" was the last bound command.
- Loading branch information
1 parent
3ddc515
commit 7e42fdd
Showing
3 changed files
with
117 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
7 changes: 7 additions & 0 deletions
7
Misc/NEWS.d/next/Library/2024-01-11-20-47-49.gh-issue-113951.AzlqFK.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,7 @@ | ||
Fix the behavior of ``tag_unbind()`` methods of :class:`tkinter.Text` and | ||
:class:`tkinter.Canvas` classes with three arguments. Previously, | ||
``widget.tag_unbind(tag, 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. |