]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive (GH-151882)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2026 13:53:02 +0000 (16:53 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 13:53:02 +0000 (13:53 +0000)
commit6185dfb450a3a76d2451cf26066acaf0fded8bf2
tree95cacbb1cc8977e431e9d06a95618caee8e969cd
parentb9bceb1fea40679cc0946f4bb97628c88fac822c
gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive (GH-151882)

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>
Doc/library/tkinter.rst
Doc/whatsnew/3.16.rst
Lib/test/test_tkinter/test_misc.py
Lib/test/test_tkinter/test_widgets.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-06-22-01-39-38.gh-issue-151881.ShACSZ.rst [new file with mode: 0644]