安装tkinter的增强库 tktk
import tkinter as tk
import tktk
win = tk.Tk()
tktk.GifFrame(win,gif_path=r"D:\ls\222.gif").pack()
win.mainloop()
#获取最新版本
#pip install git+https://gitee.com/w-8/tktk.git
效果如下
标签:git,tkinter,win,gif,import,PIL,tktk
来源: https://www.cnblogs.com/hardfood/p/16638699.html