I tried the following which I found on this site:
from turtle import *
import canvasvg
def saveImg():
    name = input("What would you like to name it? ")
    nameSav = name + ".svg"
    ts = getscreen().getcanvas()
    canvasvg.saveall(nameSav, ts)
penup()
goto(-60,-225)
pendown()
left(90)
hideturtle()
speed(0)
forward(20)
saveImg()
This is the error message I got:
File "test.py", line 18, in <module>
    saveImg()
  File "test.py", line 8, in saveImg
    saveall(nameSav, ts)
NameError: name 'saveall' is not defined
I know that canvasvg includes a definition for saveall(), so I don't see why it cannot find this function.
Please help and try to be simple in your answers as I just started coding ;)
 
     
     
    