tkinter入门简易动画之左右摇摆的图片

"""
   tkinter入门动画之左右摇摆的图片
"""

from tkinter import *
import time

window = Tk()
window.title("风火轮编程")

canvas = Canvas(window,width=800,height=800)
canvas.pack()

image1 = PhotoImage(name='i1',file="彩色十字架.gif")
imageid = canvas.create_image(00,00,anchor='nw',image=image1)

print("id=",image1  .name)

You must log in to read the rest of this article. Please log in or register as a user.