gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive#151882
Merged
serhiy-storchaka merged 3 commits intoJun 22, 2026
Merged
Conversation
Documentation build overview
6 files changed ·
|
…_inactive Wrap three long-standing Tk commands that had no tkinter wrapper: * Menu.postcascade() posts the submenu of a cascade entry (Tk 8.5), complementing the existing post() and unpost() methods. * Misc.tk_scaling() queries or sets the scaling factor in pixels per point used to convert between physical units and pixels (Tk 8.4). * Misc.tk_inactive() returns the user idle time in milliseconds, and can reset that timer (Tk 8.5). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
6295b19 to
e55966b
Compare
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().Menu.postcascade(index)wraps the menupostcascadecommand (since Tk 8.5): it posts the submenu of the cascade entry given by index (unposting any previously posted submenu), complementing the existing :meth:!postand :meth:!unpostmethods.Misc.tk_scaling(number=None, displayof=0)wrapstk scaling(since Tk 8.4): it queries or sets the scaling factor in pixels per point used to convert between physical units and pixels.Misc.tk_inactive(reset=False, displayof=0)wrapstk inactive(since Tk 8.5): it returns the user idle time in milliseconds (or-1if unsupported), and can reset that timer.All three commands are available on the bundled Tk, so no version guard is needed.
🤖 Generated with Claude Code