change background color of switch tkinter code example Example: change background color of tkinter root.configure(background='black')