Code: Select all
TypeError: () got an unexpected keyword argument 'shape' on line __ in main.py
Beispielfehler:
Code: Select all
TypeError: () got an unexpected keyword argument 'shape' on line 98 in main.py
Code: Select all
elif rand_index == 2:
wn.addshape(turtle_image)
print("Your new friend is a turtle!")
animal = trtl.Turtle(shape = turtle_image)
animal.penup()
favorite_food = "fruit.gif"
wn.update() # Show the graphics
Code: Select all
#---image initialization---
axolotl_image = "axolotl2.gif"
blobfish_image = "blobfish.gif"
dolphin_image = "dolphin.gif"
elephant_image = "elephant.gif"
ferret_image = "ferret.gif"
panda_image = "Red_panda.gif"
tiger_image = "tiger.gif"
turtle_image = "turtle.gif"
whale_image = "whale.gif"
wolf_image = "wolf.gif"
Mobile version