1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| import tkinter as tk
fen = tk.Tk()
can=tk.Canvas(fen,width=1680,height=1080,background='black')
can.pack()
mots = can.create_text(int(960), int(100),
text="XXXsalut mon grandXXX",
font=("Courrier", int(100), 'bold'),
anchor='center', fill="red")
photo = tk.PhotoImage(file="/tmp/image.png")
bidulle = can.create_image(0,0,anchor= 'nw', image=photo)
while True:
compteur = 1300
while compteur:
can.move(bidulle,2,0)
fen.update()
compteur -= 2
compteur = 1300
while compteur:
can.move(bidulle,-1,0)
fen.update()
compteur -= 1 |
Partager