Skip to content

gh-151886: Add tkinter Misc.tk_appname, tk_useinputmethods and tk_caret#151887

Merged
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:tkinter-tk-caret-appname
Jun 22, 2026
Merged

gh-151886: Add tkinter Misc.tk_appname, tk_useinputmethods and tk_caret#151887
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:tkinter-tk-caret-appname

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 21, 2026

Copy link
Copy Markdown
Member

Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through tk.call().

  • Misc.tk_appname(name=None) wraps tk appname (since Tk 8.5): it queries or sets the name used to communicate with the application through the send command.
  • Misc.tk_useinputmethods(boolean=None, displayof=0) wraps tk 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) wraps tk 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 keys x, y and height.

All three commands are available on the bundled Tk, so no version guard is needed.

🤖 Generated with Claude Code

@read-the-docs-community

read-the-docs-community Bot commented Jun 21, 2026

Copy link
Copy Markdown

…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
@serhiy-storchaka serhiy-storchaka force-pushed the tkinter-tk-caret-appname branch from 9d3b010 to 41eda11 Compare June 21, 2026 23:27
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 22, 2026 11:51
@serhiy-storchaka serhiy-storchaka merged commit 6cbb225 into python:main Jun 22, 2026
51 checks passed
@serhiy-storchaka serhiy-storchaka deleted the tkinter-tk-caret-appname branch June 22, 2026 17:42
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.

1 participant