Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

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

Open

Description

@StanFromIreland

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. added
    type-bug
    on Feb 12, 2025
  2. terryjreedy commented on Feb 12, 2025

    @terryjreedy
    Member

    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.

  3. jepler commented on May 19, 2026

    @jepler
    Contributor

    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.

  4. terryjreedy commented on May 22, 2026

    @terryjreedy
    Member

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

  5. StanFromIreland commented on May 23, 2026

    @StanFromIreland
    MemberAuthor

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

  6. serhiy-storchaka commented on May 23, 2026

    @serhiy-storchaka
    Member

    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.

  7. 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
  8. added
    stdlib
    extension-modules
    and removed
    stdlib
    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-modulestopic-tkintertype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions