Skip to content

python3.11 macOS Sonoma tkinter window elements not responding when mouse cursor was inside of tkinter during it's startup #110218

Closed
@laggykiller

Description

@laggykiller

Bug report

Bug description:

If mouse cursor was inside of tkinter window when tkinter window is opening up, the widgets inside the window become unresponsive (e.g. Click on button not registered). This weird state is resolved when user drag the window, or leaving the tkinter window region for a while.

I discovered this bug in x86_64 macOS 14. I could not reproduce this behavior on arm64 macOS 13 (M1 mac mini)

Any tkinter GUI is affected, even for the demo python3 -m tkinter

To reproduce:

  1. Open terminal
  2. Type python3 -m tkinter
  3. Move the mouse cursor to where the tkinter window will be (Takes some practice and trial & error)
  4. Press enter to launch tkinter
  5. Try to click on button. Button would not respond.
  6. Try to leave the window area, or click on the title bar
  7. Try to click on button again. Button would respond.

CPython versions tested on:

3.11

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions