Title: gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive by serhiy-storchaka · Pull Request #151882 · python/cpython · GitHub
Open Graph Title: gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive by serhiy-storchaka · Pull Request #151882 · python/cpython
X Title: gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive by serhiy-storchaka · Pull Request #151882 · python/cpython
Description: Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through tk.call(). Menu.postcascade(index) wraps the menu postcascade command (since Tk 8.5): it posts the submenu of the cascade entry given by index (unposting any previously posted submenu), complementing the existing :meth:!post and :meth:!unpost methods. Misc.tk_scaling(number=None, displayof=0) wraps tk 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) wraps tk inactive (since Tk 8.5): it returns the user idle time in milliseconds (or -1 if 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 Issue: gh-151881
Open Graph Description: Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through tk.call(). Menu.postcascade(index) wraps the menu postcascade command (since Tk 8.5): it...
X Description: Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through tk.call(). Menu.postcascade(index) wraps the menu postcascade command (since Tk 8.5): it...
Opengraph URL: https://github.com/python/cpython/pull/151882
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c30c89ab-f700-fe56-28a2-dddcf86003fb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C76A:1B00D1:1911A41:2130AE7:6A51D455 |
| html-safe-nonce | 258b9da3f1615bdedd3696b0fbe547a7ea1ca30426da4e828c2d75210c382b4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzZBOjFCMDBEMToxOTExQTQxOjIxMzBBRTc6NkE1MUQ0NTUiLCJ2aXNpdG9yX2lkIjoiNjYzMDk0NjU2MzUwNTExNjI0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8bfed7aa9825a7a299b54429d8437ed79a8c95a01c7dac00aba7a49a83b45cbc |
| hovercard-subject-tag | pull_request:3908107256 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/151882/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | Wrap three long-standing Tk commands that previously had no tkinter wrapper and were reachable only through tk.call(). Menu.postcascade(index) wraps the menu postcascade command (since Tk 8.5): it... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width