|
@ -52,23 +52,29 @@ def afficher_imc(): |
|
|
imc =float(poids/taille**2) #calcul imc |
|
|
imc =float(poids/taille**2) #calcul imc |
|
|
|
|
|
|
|
|
if imc <=18.4: |
|
|
if imc <=18.4: |
|
|
text= canvas.create_text(200,40,anchor='center',text="vous etes en sous-poids", font=('Helvetica','30')) |
|
|
text=Label(fen, text="sous-poids", font=('Arial')) |
|
|
|
|
|
text.grid(column=1, row=1, columnspan=12) |
|
|
canvas2.create_image(40, 10,anchor=NW, image = image_sousp) |
|
|
canvas2.create_image(40, 10,anchor=NW, image = image_sousp) |
|
|
|
|
|
|
|
|
if imc >=18.5 and imc<=24.9: |
|
|
if imc >=18.5 and imc<=24.9: |
|
|
text= canvas.create_text(200,40,text="votre poids est normal", font=('Helvetica','30',)) |
|
|
text=Label(fen, text="votre poids est normal", font=('Arial')) |
|
|
|
|
|
text.grid(column=1, row=1, columnspan=12) |
|
|
canvas2.create_image(40,10,anchor=NW,image=image_norm) |
|
|
canvas2.create_image(40,10,anchor=NW,image=image_norm) |
|
|
|
|
|
|
|
|
if imc >=25.0 and imc<=29.9: |
|
|
if imc >=25.0 and imc<=29.9: |
|
|
text= canvas.create_text(200,40,text="vous êtes en sur poids", font=('Helvetica','30',)) |
|
|
text=Label(fen, text="vous êtes en sur poids", font=('Arial')) |
|
|
|
|
|
text.grid(column=1, row=1, columnspan=12) |
|
|
canvas2.create_image(20, 20,anchor=NW, image = image_surpoids) |
|
|
canvas2.create_image(20, 20,anchor=NW, image = image_surpoids) |
|
|
|
|
|
|
|
|
if imc >=30.0 and imc<=34.9: |
|
|
if imc >=30.0 and imc<=34.9: |
|
|
text= canvas.create_text(200,40,text="vous etes en obesité", font=('Helvetica','30',)) |
|
|
#text= canvas.create_text(200,40,text="vous etes en obesité", font=('Helvetica','30',)) |
|
|
|
|
|
text=Label(fen, text="vous etes en obesité", font=('Arial')) |
|
|
|
|
|
text.grid(column=1, row=1, columnspan=11) |
|
|
canvas2.create_image(10, 10,anchor=NW, image = image_obes) |
|
|
canvas2.create_image(10, 10,anchor=NW, image = image_obes) |
|
|
|
|
|
|
|
|
if imc >=35.0: |
|
|
if imc >=35.0: |
|
|
text= canvas.create_text(200,40,text="vous etes en obesité sévère", font=('Helvetica','30',)) |
|
|
lbl=Label(fen, text="vous etes en obesité sévere", font=('Arial')) |
|
|
|
|
|
lbl.grid(column=1, row=1, columnspan=11) |
|
|
canvas2.create_image(10, 10,anchor=NW, image = image_obes_s) |
|
|
canvas2.create_image(10, 10,anchor=NW, image = image_obes_s) |
|
|
|
|
|
|
|
|
lbl=Label(fen, text="votre imc est de :", font='Arial') |
|
|
lbl=Label(fen, text="votre imc est de :", font='Arial') |
|
|