You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On macOS with Python 3.15, test_idle and test_tkinter fail with _tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle" on Tk/Tcl 9.1 #159517
Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on "macOS (free-threading) / build and test (macos-26)" (GHA CI) with _tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle".
changed the title [-]test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk 9.1/Tcl 9.1[/-][+]On macOS, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/+]on Oct 16, 2026
changed the title [-]On macOS, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/-][+]On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/+]on Oct 16, 2026
Thank you, @vstinner. I did not expect CI will use Tcl 9.1/Tk 9.1 so soon, especially on non-main branches. I do not recommend to use 9.1.0. It has many bugs in new features. The next bugfix release will came with their fixes, and also with many fixes of old bugs and important macOS fixes.
#159527 fixes other use of ::tk::unsupported::MacWindowStyle in IDLE.
I did not expect CI will use Tcl 9.1/Tk 9.1 so soon, especially on non-main branches. I do not recommend to use 9.1.0. It has many bugs in new features. The next bugfix release will came with their fixes, and also with many fixes of old bugs and important macOS fixes.
Activity
vstinner commentedon Oct 16, 2026
Example of failure:
cc @terryjreedy @serhiy-storchaka
[-]test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk 9.1/Tcl 9.1[/-][+]On macOS, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/+][-]On macOS, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/-][+]On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1[/+]pythongh-159517: Modernize tkinter.simpledialog
[3.15] gh-159517: Modernize tkinter.simpledialog (#159518)
[3.14] gh-159517: Modernize tkinter.simpledialog (GH-159518) (#159522)
serhiy-storchaka commentedon Oct 16, 2026
Thank you, @vstinner. I did not expect CI will use Tcl 9.1/Tk 9.1 so soon, especially on non-main branches. I do not recommend to use 9.1.0. It has many bugs in new features. The next bugfix release will came with their fixes, and also with many fixes of old bugs and important macOS fixes.
#159527 fixes other use of
::tk::unsupported::MacWindowStylein IDLE.vstinner commentedon Oct 16, 2026
You're welcome.
The failed 3.15 job uses macOS 26 arm image. The surprising thing is that https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md still mentions "Tcl/Tk 8.6.18" whereas it was "Tcl/Tk 9.0" a few hours ago, and it's now "Tcl/Tk 9.1". The README is outdated, and I looked at the wrong README :-)