diff --git a/jeu_de_la_vie.py b/jeu_de_la_vie.py index 8d96448..385cce6 100644 --- a/jeu_de_la_vie.py +++ b/jeu_de_la_vie.py @@ -144,39 +144,39 @@ def load(): fenetre = Tk() fenetre.title("Jeu Amoa") zone = Canvas(fenetre , height =795 , width =1246 , bg="#ffffff") -zone.grid(row=1,column=2,rowspan=9) +zone.grid(row=1,column=1,rowspan=9,columnspan=9) ##################Grille#################### nb_ligne_choisi=IntVar() mess_ligne=Label(text="Nombre de ligne choisi") -mess_ligne.grid(row=1,column=1) +mess_ligne.grid(row=10,column=1) choix_l=Entry(textvariable=nb_ligne_choisi,bd=5) -choix_l.grid(row=2,column=1) +choix_l.grid(row=11,column=1) nb_colonne_choisi=IntVar() mess_col=Label(text="Nombre de colone choisi") -mess_col.grid(row=3,column=1) +mess_col.grid(row=10,column=3) choix_col=Entry(textvariable=nb_colonne_choisi,bd=5) -choix_col.grid(row=4,column=1) +choix_col.grid(row=11,column=3) bout_g=Button(text="Créer la grille",command= bouton_grille) -bout_g.grid(row=5,column=1) +bout_g.grid(row=12,column=2) ################Génération################## suivant=Button(text="Prochaine génération",command= gen_suiv) -suivant.grid(row=6,column=1) +suivant.grid(row=10,column=4) precedent=Button(text="génération précédente",command= gen_prev) -precedent.grid(row=7,column=1) +precedent.grid(row=11,column=4) gen_continue=Button(text="Génération en continue",command= gen_cont) -gen_continue.grid(row=8,column=1) +gen_continue.grid(row=10,column=5) stop=Button(text="Stop",command=stop) -stop.grid(row=9,column=1) +stop.grid(row=11,column=5) ################Système sauvegarde########## save=Button(text="Sauvegarder",command=save) -save.grid(row=4,column=3) +save.grid(row=10,column=6) load=Button(text="Charger",command=load) -load.grid(row=5,column=3) +load.grid(row=11,column=6) zone.bind_all('', change) fenetre.mainloop() \ No newline at end of file