Title: Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands · Issue #151881 · python/cpython · GitHub
Open Graph Title: Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands · Issue #151881 · python/cpython
X Title: Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands · Issue #151881 · python/cpython
Description: A few long-standing Tk commands have no tkinter wrapper and are currently reachable only through tk.call(). The menu postcascade command (since Tk 8.5) posts the submenu of a cascade entry, complementing the already wrapped post and unpo...
Open Graph Description: A few long-standing Tk commands have no tkinter wrapper and are currently reachable only through tk.call(). The menu postcascade command (since Tk 8.5) posts the submenu of a cascade entry, complem...
X Description: A few long-standing Tk commands have no tkinter wrapper and are currently reachable only through tk.call(). The menu postcascade command (since Tk 8.5) posts the submenu of a cascade entry, complem...
Opengraph URL: https://github.com/python/cpython/issues/151881
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands","articleBody":"A few long-standing Tk commands have no tkinter wrapper and are currently reachable only through ``tk.call()``.\n\n* The menu ``postcascade`` command (since Tk 8.5) posts the submenu of a cascade entry, complementing the already wrapped ``post`` and ``unpost``.\n* ``tk scaling`` (since Tk 8.4) queries or sets the scaling factor (pixels per point) used to convert between physical units and pixels.\n* ``tk inactive`` (since Tk 8.5) returns the time in milliseconds since the user last interacted with the system, and can reset that timer.\n\nI propose to add the corresponding ``Menu.postcascade()``, ``Misc.tk_scaling()`` and ``Misc.tk_inactive()`` methods.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-151882\n* gh-152683\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-06-21T22:39:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/151881/cpython/issues/151881"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:902b1ed3-779e-82c5-d80a-0c199d3d770c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABEA:1C4334:BE0B78:102C4FA:6A516525 |
| html-safe-nonce | 8a25c6cf2e02458ac223aea4a3aa23e9560ea46e623320113387e3b74f7171d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkVBOjFDNDMzNDpCRTBCNzg6MTAyQzRGQTo2QTUxNjUyNSIsInZpc2l0b3JfaWQiOiI0MDUzOTM4MjkwMDkyNTAwMjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b1ac5e6ab1b9b9e69a5dae78917c34a3f07eae996b553474795c84c3ae23598 |
| hovercard-subject-tag | issue:4712207029 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/151881/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aefe4a60c2a5b1cd67d381ee6e7f6f550459542a3718746901c54e45d75293d7/python/cpython/issues/151881 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aefe4a60c2a5b1cd67d381ee6e7f6f550459542a3718746901c54e45d75293d7/python/cpython/issues/151881 |
| og:image:alt | A few long-standing Tk commands have no tkinter wrapper and are currently reachable only through tk.call(). The menu postcascade command (since Tk 8.5) posts the submenu of a cascade entry, complem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2eeb434949a926fad21064b4d395a54759f7a0b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width