how to change the background color of a window in python code example Example: set background colour tkinter window_name.configure(background='black')