简体   繁体   中英

.gif is not responding in python

I get blank screen when i run this code.

screen=turtle.Screen()
print(screen.bgpic())
screen.setup(900, 650)
screen.bgpic("map.gif")
input()

Posting the image below

Full code

Blank Display

Why do you need to have input()? you can just run like this and it should show up:

import turtle

screen = turtle.Screen()
screen.setup(900, 650)
screen.bgpic("map.gif")

turtle.exitonclick()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM