tkinter isn't working on Spyder for some reason. do I have to uninstall it?
I had a normal terminal that was not an IDE and everything was working fine, but now it's not working..
import tkinter as tkr tk = tkr.Tk() canvas = tkr.Canvas(tk, width=500, height=500) canvas.grid() tk.mainloop() def donothing(): filewin = Toplevel(root) button = Button(filewin, text="Do nothing")The last two lines have the yellow triangle with the exclamation mark, indicating some kind of an undefined root.
I had a normal terminal that was not an IDE and everything was working fine, but now it's not working..