tkinter crashes OSX

74 views
Skip to first unread message

Al Goor

unread,
Apr 4, 2020, 12:33:23 PM4/4/20
to spyder
I'm having trouble running tkinter on OSX.  The following code crashes the computer at the last line...

import tkinter as tk

print(tk.TkVersion)
top
= tk.Tk()
top
.mainloop()

I'm using anaconda-navigator (1.9.12), python 3.7.7, and Spyder 4.1.1.  The Tk version shows as 8.6.  

Where am I going wrong?

Thanks,
Eric
Message has been deleted

Peter Vince

unread,
Apr 5, 2020, 3:06:06 PM4/5/20
to spyder
same problem with spyder 3.3.6 (as with running PySimpleGUI) logs me out, etc.
The only way to run it is as 'pythonw programName.py’ from the darwin console.
Not only that but on restarting spyder I get ‘error restarting kernel’ and no,
repeat no, recommended solutions work. 
So, how do I get a working console?
Reply all
Reply to author
Forward
0 new messages