0
from tkinter import *
master = Tk()
frame = Frame(master, height = "200", width = "200", bg="red")
frame.pack()
def change():
if frame.bg == "red":
frame.bg = "green"
else:
frame.bg = "red"
button = Button(frame, text="Change", command=change)
button.pack()
mainloop()
>>> I am pretty sure it works, if it doesnt just mention me and Ill see if I can fix it