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

tkinter 5/many

parent f90ed6ea
No related branches found
No related tags found
No related merge requests found
......@@ -46,10 +46,16 @@ def update_grid():
if naissance([x][y]) == 1:
"colorier la case zones[x][y] en vert"
canvas.itemconfig(zones[x][y], fill="green")
else:
"colorier la case zones[x][y] en banc"
canvas.itemconfig(zones[x][y], fill="white")
else:
if survival(universe[x][y]) == 0:
"colorier la case zones[x][y] en rouge"
canvas.itemconfig(zones[x][y], fill="red")
else:
"colorier la case zones[x][y] en noir"
canvas.itemconfig(zones[x][y], fill="black")
universe = generation(universe)
def create_cell_on_click(event):
......
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