from tkinter import * window=Tk() window.title("Python") window.configure(bg= '#ff5f00') t1 = Label(width=10, height=5,bg='yellow',text='1') t1.pack() t2 = Label(width=10, height=5,bg='green',text='2') t2.pack() t3 = Label(width=10, height=5,bg='blue',text='3') t3.pack() t4 = Label(width=10, height=5,bg='orange',text='4') t4.pack() window.mainloop()