Mundo em Python

Calcular se pode candidatar a um apoio com base no IAS

from tkinter import *
root = Tk()
root.title("Multiplicador IAS")
root.geometry("300x300")
root.resizable(0,0)
root.configure(bg="#dae3d8")
def butaoclick1():
m = mult.get()
v = m * 478.70
varr = round(v,2)
msg = f"O rendimento de {m} vezes o IAS é {varr}."
resultado.set(msg)
texto = Label(text="Multiplicador do IAS",font=("Times","12","bold"),bg="#dae3d8",fg="blue")
texto.place(relx=0.05,rely=0.2)
mult = DoubleVar()
entrada_mult = Entry(textvariable=mult,justify='center')
entrada_mult.place(relx=0.55,rely=0.2)
#
bt_calcular = Button( text="Calcular", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'),command=butaoclick1)
bt_calcular.place(relx=0.4,rely=0.45, relwidth=0.3, relheight=0.15)
resultado = StringVar()
resulatdoresultado =Label(textvariable=resultado,font=("Arial",10),bg="#dae3d8")
resulatdoresultado.place(relx=0.1,rely=0.7,relwidth=0.9)
root.mainloop()
0