20 lines
439 B
Python
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()
|