import PySimpleGUI as sg
layout = [[sg.Image(filename='your_gif.gif', key='-IMAGE-')]]
window = sg.Window('Animation Demo', layout)
while True:
event, values = window.read(timeout=100)
if event == sg.WINDOW_CLOSED:
break
window['-IMAGE-'].update_animation('your_gif.gif', time_between_frames=100)
window.close()
GIF的展示
最新推荐文章于 2024-05-07 20:29:30 发布