Tkinter (IDLE) submenu on Wayland stays open if you switch windows
Open
Nobody has claimed this yet.
extension-modules
OS-linux
topic-tkinter
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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.
Occurs in both 3.13 and main branch. Running Fedora 41 GNOME
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in IDLE on Linux with Fedora 41 GNOME and Wayland, switching windows while a Tkinter submenu is open. Trace the IDLE/Tkinter window and menu handling involved; done means the submenu closes or no longer remains above the newly focused window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100