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

tkinter 7/many

parent a3c5b965
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ import random as rd
fenetre = Tk()
game_of_life = Toplevel(fenetre)
game_of_life.grid()
universe = generate_universe((100,100))
canvas = Canvas(game_of_life)
canvas.pack()
......@@ -18,6 +17,8 @@ ligne_texte.pack()
def create_a_grid():
"""create the grid for the graphic interface"""
global universe
universe = generate_universe((100,100))
width = game_of_life.winfo_width()
heigth = game_of_life.winfo_height()
global zones #contient l'ensemble des zones representant des cellules
......@@ -38,7 +39,7 @@ def create_a_grid():
def update_grid():
"""mets la grille a jours """
"""met la grille a jours """
global universe
for x in range(len(universe)):
for y in range (len(universe[0])):
......
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