My task is to create a label and button on Tkinter. The button has to change the label, and I have to change the colour of the button and the label. I have changed the colour of the background but I can't figure out how to do the same for the label and button.
from tkinter import *
from tkinter import ttk
def change():
print("change functon called")
def main():
rootWindow = Tk()
rootWindow.geometry('400x400')
rootWindow.configure(bg="red")
global Label
label = ttk.Label( rootWindow, text="Hello World!" )
label.pack()
button1 = ttk.Button( rootWindow, text="Change Label",
command=change)
button1.pack()
rootWindow.mainloop()
main()