python tkinter change background color code example
Example 1: change background color of tkinter
root.configure(background='black')
Example 2: set background colour tkinter
window_name.configure(background='black')
Example 3: how to add a background color in tkinter
from tkinter import *
new_window = Tk()
new_window.title("Hello World")
new_window.geometry("300x250")
new_window.config(bg = "red")
new_window.mainloop()
Example 4: gui.configure(background="light green") in tkinter
gui.configure(background="light green")
Example 5: python tkinter change color of main window
new_window.config(bg = "red")