from tkinter import *
from tkinter.font import Font

screen = Tk()
screen.geometry(”400×250”)
screen.resizable(0,0)
screen.title(”ALV-laskuri”)

ALV = 1.24
ALV_miinus = 0.74

arvo = IntVar()
arvo1 = Entry(textvariable = arvo, font=(”Courier”, 14))
arvo1.place(x = 20, y= 37, width=150,height=30)

arvo_VEROTON = IntVar()
arvo_VEROTON1 = Entry(textvariable = arvo_VEROTON, font=(”Courier”, 14))

arvo1 = arvo.get()
arvo_VEROTON1 = arvo_VEROTON.get()

def laske():
arvo1 = arvo.get()
label = Label(screen, text = (round( arvo1 * ALV, 1)),fg=”black” , bg=”grey”,font=(”Courier”, 14),)
label.place(x = 210, y = 40)
ALVI = arvo1* ALV

arvo_VEROTON = arvo.get()
labeli = Label(screen, text = (round(ALVI – arvo1,1,)) , bg=”grey”,fg=”black”,font=(”Courier”, 14),)
labeli.place(x = 20, y = 135)

copyrighti = Label(text =”©Luukas Vuonokari”, font=(”Courier”, 8), fg=”black”)
copyrighti.place(x=0, y=230)

Hinta_v= Label(text =”Hinta(verollinen)”,font=(”Courier”, 14), fg=”black”, bg=”white”)
Hinta_v.place(x=210, y=5)

ALVtext = Label(text =”Hinta(veroton)”,font=(”Courier”, 14), fg=”black”, bg=”white”)
ALVtext.place(x=20, y=5)

ALVtexti = Label(text =”ALV(€)”,font=(”Courier”, 14), fg=”black”, bg=”white”)
ALVtexti.place(x=20, y=100)

LaskuNappi = Button(text = ”Laske”, font=(”Courier”, 9),fg = ”black”,height = 3, width = 15, bg = ”white”,command = laske)
LaskuNappi.place(x = 278, y = 188)

screen.mainloop()