I'm using macOS 10.14.6 with Python 3.8.2 and tk version 8.6.8, when I run any tk related code, even like this:
window = tk.Tk()
window.title('my window')
window.geometry('200x100')
window.mainloop()
The system will be crashed (screen blacked out and then logged off and reboot with login screen)
I searched online and most people say it is old version tk's bug, but I think I'm using a newer version of tk 8.6.8 and python 3.8.2. So I'm confused about that.