gh-151886: Add tkinter Misc.tk_appname, tk_useinputmethods and tk_caret#151887
Merged
serhiy-storchaka merged 5 commits intoJun 22, 2026
Merged
Conversation
Documentation build overview
8 files changed ·
|
…tk_caret Wrap three long-standing Tk commands that had no tkinter wrapper: * Misc.tk_appname() queries or sets the name used to communicate with the application through the send command (Tk 8.5). * Misc.tk_useinputmethods() queries or sets whether Tk uses the X Input Methods (XIM) for filtering events (Tk 8.5). * Misc.tk_caret() sets or queries the per-display caret location used for accessibility and for placing the input method window (Tk 8.5). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
9d3b010 to
41eda11
Compare
…pname # Conflicts: # Doc/library/tkinter.rst # Doc/whatsnew/3.16.rst # Lib/test/test_tkinter/test_misc.py # Lib/tkinter/__init__.py
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through
tk.call().Misc.tk_appname(name=None)wrapstk appname(since Tk 8.5): it queries or sets the name used to communicate with the application through thesendcommand.Misc.tk_useinputmethods(boolean=None, displayof=0)wrapstk useinputmethods(since Tk 8.5): it queries or sets whether Tk uses the X Input Methods (XIM) for filtering events, returning the resulting state.Misc.tk_caret(x=None, y=None, height=None)wrapstk caret(since Tk 8.5): it sets or queries the per-display caret location used for accessibility and for placing the input method (XIM or IME) window. A query returns a dictionary with the keysx,yandheight.All three commands are available on the bundled Tk, so no version guard is needed.
🤖 Generated with Claude Code