|
|
|
@ -113,9 +113,9 @@ def lancerTest(): |
|
|
|
def changeDistance(): |
|
|
|
global boolDistanceDeManhattan |
|
|
|
if boolDistanceDeManhattan: |
|
|
|
boutonDistance.config(text='Distance de Manhattan') |
|
|
|
else: |
|
|
|
boutonDistance.config(text='Distance euclidienne') |
|
|
|
else: |
|
|
|
boutonDistance.config(text='Distance de Manhattan') |
|
|
|
boolDistanceDeManhattan = not boolDistanceDeManhattan |
|
|
|
|
|
|
|
boolDistanceDeManhattan = False |
|
|
|
@ -164,14 +164,14 @@ entreetemp.grid(row = 8, column = 0, columnspan = 2) |
|
|
|
canvaRecup = tk.Canvas(fenetre, bg='snow', width = 1, height = 10, highlightthickness = 0) |
|
|
|
canvaRecup.grid(row = 9, columnspan = 2) |
|
|
|
|
|
|
|
labeldistance = tk.Label(fenetre, text = "choisir le mode de distance voulu :", bg = "snow") |
|
|
|
labeldistance = tk.Label(fenetre, text = "mode de distance actuel :", bg = "snow") |
|
|
|
labeldistance.grid(row = 10) |
|
|
|
|
|
|
|
boutonRecup = tk.Button(fenetre, command = lancerTest, bg = 'snow',text='Valider', |
|
|
|
cursor='hand2') |
|
|
|
boutonRecup.grid(row = 11,column = 1) |
|
|
|
|
|
|
|
boutonDistance = tk.Button(fenetre, command = changeDistance, text="Distance de Manhattan" |
|
|
|
boutonDistance = tk.Button(fenetre, command = changeDistance, text="Distance euclidienne" |
|
|
|
,bg='snow',cursor='hand2') |
|
|
|
boutonDistance.grid(row=11, column=0) |
|
|
|
|
|
|
|
|