Tkinter crashes computer after MacOS 10.14.6 update

This problem has troubled me for a long time. My macOS version is 10.14.6 (Mojave). Running tkinter will crash the system, but I don’t want to update macOS version to 10.15 (Catalina) for this problem.

I got a solution by updating the python version.

My own test results, python versions 3.8.2 and 3.8.3 can fix the problem, but python versions 3.8.1, 3.7.x, 3.6.x will cause the crash.

I can confirm that this happens with Python 3.7.x. Moving to 3.8.3 fixes the problem.