from tkinter import *

window = Tk()

window.title("Welcome to Tkinter!")

# window size and position:
# width x height + xoffset + yoffset.
window.geometry('400x300+0+0')  # no spaces in spec!


lbl = Label(window, text="Hello" )
lbl.grid(column=0, row=0)

# fg stands for foreground, bg for background
# typically, those abbreviations refer to color

lbl2 = Label(window, text="Another Label is longer now", fg = "white", bg = "green" )
lbl2.grid(column=1, row=1)

# RED GREEN BLUE in [00 ... FF], foramt is RRGGBB
lbl3 = Label(window, text="Another Label 3", bg = "#9999FF" )
lbl3.grid(column=2, row=0)

lbl4 = Label(window, text="Another Label 4" )
lbl4.grid(column=3, row=2)



window.mainloop()


