Skip to content

Commit

Permalink
Début gestion de l'IHM
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeta committed Aug 30, 2017
1 parent a607b8b commit c9756c9
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 78 deletions.
2 changes: 2 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 65 additions & 62 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Environnement/__pycache__/pivot.cpython-35.pyc
Binary file not shown.
Binary file modified Environnement/__pycache__/player.cpython-35.pyc
Binary file not shown.
Binary file modified Environnement/__pycache__/terrain.cpython-35.pyc
Binary file not shown.
Binary file modified IA/__pycache__/IrisIA.cpython-35.pyc
Binary file not shown.
Binary file modified IA/__pycache__/irisCpIA.cpython-35.pyc
Binary file not shown.
38 changes: 22 additions & 16 deletions point.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,35 +143,41 @@ def point(event):
next_color = "bleu"

chaine.configure(text = "")
role.configure(text="Au tour du joueur "+next_color+" de jouer. ")
load.configure(text ="Veuillez patienter!!")
role.configure(text="Veuillez patienter!! Au tour du joueur "+next_color+" de jouer. ")



#Corps principale du programme
fen = Tk()
fen.title("Point point Game By EnighmaLab")

can = Canvas(fen, width =Twidth, height =Theight, bg="light yellow")
can = Canvas(fen, width =Twidth, height =Theight, bg="light yellow",borderwidth=2,relief=SOLID)
can.bind('<Button-1>', point)
can.pack()
can.grid(row = 0, rowspan = 45)

terrain = Terrain(Twidth,Theight,space,can)

b1 = Button(fen, text='Commencer', command=create_plateform)
b1.pack()
b1 = Button(fen,bg='#FAF8E9',relief=GROOVE, text='Commencer',width=15, command=create_plateform)
b1.grid(row = 0,column = 1)

role = Label(fen)
role.pack()
b2 = Button(fen,bg='#FAF8E9',relief=GROOVE, text='Instructtion',width=15, command=create_plateform)
b2.grid(row = 1,column = 1)

info = Label(fen,bg='#6699CC', text='Joueur Bleu',width=15,pady=5,relief=GROOVE)
info.grid(row = 13,column = 1)

load = Label(fen)
load.pack()
info2 = Label(fen,bg='#FF6666', text='Joueur Rouge',width=15,pady=5,relief=GROOVE)
info2.grid(row = 15,column = 1)

b3 = Button(fen,bg='#FAF8E9',relief=GROOVE, text='Quitter',width=15, command=create_plateform)
b3.grid(row = 44,column = 1)

role = Label(fen)
role.grid(row = 44)

chaine = Label(fen)
chaine.pack()
chaine = Label(fen,fg='red')
chaine.grid(row = 45)

info = Label(fen)
info.pack()

info2 = Label(fen)
info2.pack()

fen.mainloop()

0 comments on commit c9756c9

Please sign in to comment.