Skip to content
Snippets Groups Projects
Commit a3c5b965 authored by Dolleans Geoffrey's avatar Dolleans Geoffrey
Browse files

tkinter 6/many

parent 69c8db35
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ def update_grid():
for x in range(len(universe)):
for y in range (len(universe[0])):
if universe[x][y] == 0:
if naissance([x][y]) == 1:
if naissance(universe[x][y]) == 1:
"colorier la case zones[x][y] en vert"
canvas.itemconfig(zones[x][y], fill="green")
else:
......@@ -81,12 +81,12 @@ def add_seed_tk():
button_add_seed = Button(fenetre, text="ajoute la graine",command=add_seed_tk)
button_add_seed.pack()
button_next_step = Button(fenetre, text="ajoute la graine",command=update_grid)
button_next_step = Button(fenetre, text="go to next gen",command=update_grid)
button_next_step.pack()
create_a_grid()
canvas.bind("<Button-1>", change_colour_on_click)
canvas.bind("<Button-1>", create_cell_on_click)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment