I'm growing desperate with this simple tkinter program: I can't seem to be able to change the background color (or the color of the individual widgets)! What is going wrong here?
Below is a gist of the various attempts that I and the errors that I received
import tkinter
import tkinter.ttk as tk
root = tkinter.Tk()
frame= tk.Frame(root)
frame.grid(column=0, row=0)
tk.Button(frame, text="Open file", command=None).grid(column=0, row=1 )
lab=tk.Label(frame, text="test test test test test test ").grid(column=0, row=2 )
#root.config(background="black") # does nothing
#frame.config(background="black") # Error: unknown option "-background"
#lab.config(background="black") # Error: 'NoneType' object has no attribute 'config'
root.mainloop()