from tkinter import * 
from math import *
 
 
#Fonction calcul 
def calcul (): 
    #Récupération des variables
    D=int(A.get()) 
    E=float(B.get()) 
    F=float(C.get()) 
 
    #Calcul 
    G=D*E*F
 
    chaine.configure(text = G)
 
fenetre = Tk() 
fenetre.title("Test de calculs") 
 
txt1=Label(fenetre, text="A:").grid(row=1, column=1) 
txt2=Label(fenetre, text='B:').grid(row=2, column=1) 
txt3=Label(fenetre, text='C:').grid(row=3, column=1)
Button(fenetre,text='Calculer',command=calcul).grid(row=4 , column=1) 
Button(fenetre,text='Quitter',command=fenetre.destroy).grid(row=4, column=2) 
 
A=Entry(fenetre) 
B=Entry(fenetre) 
C=Entry(fenetre)
chaine = Label(fenetre) 
 
A.grid(row=1, column=2) 
B.grid(row=2, column=2) 
C.grid(row=3, column=2)
chaine.grid(row=5, column=2) 
 
fenetre.mainloop()