how to make a image pop up python

Solutions on MaxInterview for how to make a image pop up python by the best coders in the world

showing results for - "how to make a image pop up python"
Monica
25 Mar 2019
1#so we can load up image
2import turtle
3
4#out setup so a screen can appear(using predefined object {screen} and setting it with a variable name so we can easily refer to it later)
5screen = turtle.Screen()
6
7#give variable to your image file and pathway MUST HAVE .GIF EXTENSION
8image = "theimagename.gif"
9
10#adding image 
11screen.addshape(image)
12
13#making our turtle image! making our turtle objects value the image 
14turtle.shape(image)
15
16#optional so that the screen stays for longer!
17screen.exitonclick()
18