我试图在我的pysimplegui图形中使用gif,但是gif不会移动,有没有办法解决这个问题? 我看到有一种方法可以更新动画,但我无法抓取图形图像来更新它,所以我能做什么?另外,我的屏幕读数没有阻塞任何内容
def criapersonagem(x,y):
global local_personagem
global personagem
personagem = graph.draw_image(filename='personagemgif.gif',
data=None,
location=(x, y))
criarpersonagem(90,60)
这就是我在图表中创建图像的方式
GIF图像中有很多帧,对于动画,必须将每一帧显示为时间流逝
这里有一个例子来说明我是如何做到这一点的。键盘控件
<Left><Right><Up><Down>
也可以工作。 记住在代码中使用GIF文件相关问题 更多 >
编程相关推荐