python turtle use image code example

Example: python turtle import images

import turtle
from os import path
#WARNING: IMAGES MUST BE .GIF
currentDir = os.abspath(path.curdir) #get the python file location

wn = turtle.Screen()
wn.setup(width=700,height=400)
wn.title("image test")

wn.addshape(currentDir+"\\Resources\\image.gif") #u can make images in a new folder

myImage = turtle.Turtle()
myImage.speed(0) #so it will draw the image instantly
myImage.shape(currentDir+"\\Resources\\image.gif") #give your object the image
myImage.penup() #if you dont do this, it will draw a line
myImage.goto(0,0) #give your image a location

while True:
  wn.update() #update your window