GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands · Issue #151881 · python/cpython

Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands #151881

New issue
Copy link
New issue
Copy link
Closed
Closed
Add tkinter wrappers for Menu postcascade and the tk scaling and tk inactive commands#151881
Copy link
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Jun 21, 2026
Issue body actions

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 unpost.
  • tk scaling (since Tk 8.4) queries or sets the scaling factor (pixels per point) used to convert between physical units and pixels.
  • tk inactive (since Tk 8.5) returns the time in milliseconds since the user last interacted with the system, and can reset that timer.

I propose to add the corresponding Menu.postcascade(), Misc.tk_scaling() and Misc.tk_inactive() methods.

Linked PRs

  • gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inactive #151882
  • gh-151881: Skip tk_inactive negativity check on Windows #152683

Activity

  1. serhiy-storchaka
    added a commit that references this issue on Jun 21, 2026

    pythongh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk…

    e55966b
  2. StanFromIreland
    added
    type-featureA feature request or enhancementA feature request or enhancement
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    topic-tkinter
    on Jun 22, 2026
  3. serhiy-storchaka
    added a commit that references this issue on Jun 22, 2026

    gh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk_inact…

    6185dfb
  4. serhiy-storchaka
    closed this as completedon Jun 22, 2026
  5. encukou commented on Jun 30, 2026

    @encukou
    encukou
    on Jun 30, 2026
    Member
    More actions

    This failed on the Windows11 buildbot: https://buildbot.python.org/#/builders/914/builds/5709

  6. encukou
    reopened this on Jun 30, 2026
  7. serhiy-storchaka
    added a commit that references this issue on Jun 30, 2026

    pythongh-151881: Skip tk_inactive negativity check on Windows

    2286e60
  8. serhiy-storchaka commented on Jun 30, 2026

    @serhiy-storchaka
    serhiy-storchaka
    on Jun 30, 2026
    MemberAuthor
    More actions

    The AMD64 Windows11 buildbot fails test_tk_inactive: assertGreaterEqual(ms, -1) got -2137503217.

    This is a Windows-only Tk bug: Tk_GetUserInactiveTime() returns a C long, which is only 32-bit there, so a long inactivity interval (as on a non-interactive session) overflows to a negative value. Reported upstream as Tk ticket 3cb7c4ac72d4.

    PR #152683 guards the check on Windows pending the Tk fix.

  9. serhiy-storchaka
    added a commit that references this issue on Jun 30, 2026

    gh-151881: Skip tk_inactive negativity check on Windows (GH-152683)

    2303eea
  10. maurycy
    added a commit that references this issue on Jul 1, 2026

    Merge branch 'main' into maurycy/bye-abba

    da7d768
  11. serhiy-storchaka
    closed this as completedon Jul 2, 2026
  12. pyctrl
    added a commit that references this issue on Jul 5, 2026

    pythongh-151881: Add tkinter Menu.postcascade, Misc.tk_scaling and tk…

    242af31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.