How to change the background color of the box in tkinter (python) How to change the background color of the box in tkinter (python) tkinter tkinter

How to change the background color of the box in tkinter (python)


Configure the root:

root.configure(background='red')

You can also directly assign it to the bg property:

root['bg'] = 'red'