I was practicing tkinter with PyCharm for my own project with serial and arduino. Nothing special about it - few buttons, option-menu and labels. But I clicked on Mac's menu bar in the tkinter's GUI window on the option "Show tab bar". And then macbook had a reboot. After it - every script with tkinter's GUI reboots my macbook on executing. A blank window is shown for a second and then mac reboots. I'm using Mojave 10.14.6 (18G84)
I deleted python 3.7 interpreter from mac and reinstalled PyCharm. I cleared cache folders for python and PyCharm.
import tkinter
tkinter._test() # and it crashes now ever in this code...
UPD: updated MacOS to 10.14.6 (18G87) - still the same issue