Calcular o IMC usando tkinter
import tkinter class appimc_tk(tkinter.Tk): def __init__(self,parent): tkinter.Tk.__init__(self,parent) self.parent = parent self.initialize() def initialize(self): self.grid() #titulo titulo = tkinter.Label(self, text="Índice de Massa Corporal ", font=("Arial 18 bold"),anchor="center", fg="white" ,bg="blue") titulo.grid(column=0,row=0,columnspan=2, sticky='EW') espaco = tkinter.Label(self, text="",anchor="center",bg="snow") espaco.grid(column=0, row=1, columnspan=2, sticky='EW') # Variáveis Texto peso=tkinter.Label(self,text="Peso (em Kg): ", font=("Times 12"), anchor="w",fg="slate gray" ,bg="cyan") peso.grid(column=0, row=2, columnspan=1, sticky='EW') altura = tkinter.Label...