This repository has been archived on 2019-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
s1-tp/S1/Echecs/sprites/tstimg.py

20 lines
439 B
Python

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()