Window behavior is buggy with Tcl/Tk version 8.6.12. Will there be macOS binaries containing the newer (and working) Tcl/Tk version 8.6.13?
Seems like no one is facing this issue even though according to github some do? However, maybe someone can answer this question:
Is there even a way to update Tcl/Tk when using the official installers from python.org? The only option I have found so far is using python from Homebrew.
There is an open CPython issue for tkinter in MacOS Sonoma: python3.11 macOS Sonoma tkinter window elements not responding when mouse cursor was inside of tkinter during it's startup · Issue #110218 · python/cpython · GitHub
It’s worth a try to first install Python (with any install), then (re)install (the latest version of) tcl-tk via brew, see this comment:
python3.11 macOS Sonoma tkinter window elements not responding when mouse cursor was inside of tkinter during it's startup · Issue #110218 · python/cpython · GitHub
Using a brew install of python itself (according to that comment, I didn’t try to verify this), will not work but lead to the same issues as in the bug.
It also doesn’t seem to be an issue in Python 3.12 (I’m not totally sure of this, but at least I didn’t have issues using idle3
a bit, but I never use tkinter in my own code). So, you could also first try that.