from tkinter import *
root = Tk()
def myClick():
myLabel = Label(root, text='Button clicked. ')
myLabel.pack()
myButton = Button(root, text="Click me!", command=myClick, fg='blue', background="red", activeforeground='green', activebackground='black')
myButton.pack()
root.mainloop()
The code runs fine except the background color. Could someone help? Many thanks BTW, I'm using Python 3.7.4 and macOS Catalina 10.15.2