Ajout TP5 & TP6 & MàJ Échecs

This commit is contained in:
Geoffrey Frogeye 2014-11-07 01:30:48 +01:00
parent 6813e583bb
commit 43b02a5537
26 changed files with 1138 additions and 138 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
S1/Echecs/sprites/TourB.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

BIN
S1/Echecs/sprites/TourN.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
S1/Echecs/sprites/cavB.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
S1/Echecs/sprites/cavN.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
S1/Echecs/sprites/fouB.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
S1/Echecs/sprites/fouN.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
S1/Echecs/sprites/pionB.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

BIN
S1/Echecs/sprites/pionN.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
S1/Echecs/sprites/roiB.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
S1/Echecs/sprites/roiN.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -0,0 +1,19 @@
from tkinter import *
##### Programme principal : ############
taille=600
fen = Tk()
can = Canvas(fen, width =taille, height =taille, bg ='ivory')
img = PhotoImage(file ='./../sprites/reineN.gif')
can.pack(side =TOP, padx =5, pady =5)
i = img.subsample(2,2)
can.create_image(150 ,150, image =i)
j = img.subsample(4,4)
can.create_image(300 ,300, image =j)
k = img.subsample(8,8)
can.create_image(400 ,400, image =k)
fen.mainloop()