# Créé par Léo, le 31/05/2016 en Python 3.2 from random import * from tkinter import* from PIL import Image im1=Image.open("cle.JPG") L,H=im1.size x1, y1,y2=3, 0,0 #x1,y1,y2,xx1,yy1,yy2=> coordonnées associées à l'ANIMATION,au CANVAS xx1, yy1,yy2=L-2,0,0 PP1,PP2=255,255 #=>moyennes des composantes de couleurs decalage=5 def animation (X1,Y1,Y2,ligne, P,recule): Fond.coords(ligne, X1, Y1, X1, Y2) if Y2L//2: #décalage vers la <--gauche à partir du haut: X1=X1-decalage Y2, Y1=0,0 ligne=Fond.create_line(X1, Y1, X1, Y2, width=3, fill="white") #nouvelle ligne animation(X1,Y1,Y2,ligne,P, recule) else:#décalage vers la droite--> à partir du haut: if X1', animer) ##fenetre.attributes("-fullscreen", 1) fenetre.mainloop()