Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
146 views
in Technique[技术] by (71.8m points)

python - GIF没有在乌龟里玩(GIF is not playing in turtle)

I want the GIF to play in the turtle screen.

(我希望GIF在乌龟屏幕中播放。)

But it is showing only the still image.

(但它只显示静止图像。)

Please fix this, Any help will be appreciated...

(请解决此问题,任何帮助将不胜感激...)

Here is my code:

(这是我的代码:)

import turtle
import os

# resources :
bgpic = r"C:UsersintelDesktopxBDT7.gif"


win = turtle.Screen()
win.addshape(bgpic)

sh = turtle.Turtle()
sh.shape(bgpic)


# Shuting the window down :
turtle.mainloop()
  ask by Andrew whiteman translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...