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 — Tkinter (IDLE) submenu on Wayland stays open if you switch windows · Issue #130045 · python/cpython

Tkinter (IDLE) submenu on Wayland stays open if you switch windows #130045

New issue
Copy link
New issue
Copy link
Open
Open
Tkinter (IDLE) submenu on Wayland stays open if you switch windows#130045
Copy link
Labels
OS-linuxextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@StanFromIreland
StanFromIreland
opened on Feb 12, 2025
Issue body actions

Bug report

Bug description:

The sub menu does not close automatically and when I switch windows with it open it stays on top of whatever window I've opened. The screenshot below shows the behavior.

Image

Occurs in both 3.13 and main branch. Running Fedora 41 GNOME

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Activity

  1. StanFromIreland
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Feb 12, 2025
  2. terryjreedy
    added
    topic-tkinter
    OS-linux
    on Feb 12, 2025
  3. terryjreedy commented on Feb 12, 2025

    @terryjreedy
    terryjreedy
    on Feb 12, 2025
    Member
    More actions

    Everything between 'behavior.' and 'Occurs in' is the included image. I don't see anything like this on Windows or macOS. The menu goes away when focus goes away, so is gone when returning focus to IDLE. So I am marking this as tkinter on Linux issue.

    Reacted by Stan Ulbrych
  4. jepler commented on May 19, 2026

    @jepler
    jepler
    on May 19, 2026
    Contributor
    More actions

    I tried reproducing this on Debian 13 ("Trixie") with the XFCE desktop environment running in X11. It defaults to a click-to-focus mode. The Python version is the system-packaged Python 3.13.5 with tcl/tk 8.6.16.

    I opened the File menu, then clicked on another application. The File menu disappeared and was no longer visible, and the other application was brought to the front.

    When the menu is shown, hotkeys such as alt+tab are not acted on by the window manager and no change occurs.

    In "focus follows mouse" mode, the pop-up menu inhibits shifts in focus as long as it is displayed. A click outside the menu area (including on another application window) dismisses it without moving focus.

    It could simply be a gnome bug? I recommend creating a simple reproducer (in wish, even) and raising it as a bug with Gnome. Even if they don't consider it to be a bug, they might have some insight into whether an application can avoid or modify the behavior.

  5. terryjreedy commented on May 22, 2026

    @terryjreedy
    terryjreedy
    on May 22, 2026
    Member
    More actions

    @serhiy-storchaka Could this be a tk bug specific to a subset of linuxes?

  6. StanFromIreland commented on May 23, 2026

    @StanFromIreland
    StanFromIreland
    on May 23, 2026
    MemberAuthor
    More actions

    Based on the discussion on the Discord, it may be an issue specific to the display server (Wayland).

    Reacted by Serhiy Storchaka
  7. serhiy-storchaka commented on May 23, 2026

    @serhiy-storchaka
    serhiy-storchaka
    on May 23, 2026
    Member
    More actions

    I confirm this on Ubuntu 26.04 KDE Wayland. I cannot reproduce this on X11. Years ago I observed similar bugs on X11. I think this is a Tk bug.

  8. terryjreedy
    changed the title [-]IDLE submenu stays open if you switch windows[/-] [+]Tkinter (IDLE) submenu on Wayland stays open if you switch windows[/+] on May 23, 2026
  9. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    and removed
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 25, 2026
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

    OS-linuxextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    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.