root.configure(background='cornsilk') code example
Example 1: change background color of tkinter
root.configure(background='black')
Example 2: gui.configure(background="light green") in tkinter
gui.configure(background="light green")
root.configure(background='black')
gui.configure(background="light green")