Questions tagged [canvasvg]

`canvasvg` is a Python module by Wojciech Muła for converting canvas graphics from the `tkinter` module to SVG graphics.

canvasvg was released on November 23, 2014, and is on version 1.0.0. The general purpose is to convert the graphics from the tkinter module to the SVG format, manifested in the convert method, which takes an XML DOM and a canvas object.

See also:

3 questions
1
vote
1 answer

printing turtle-graphics canvas with canvasvg.saveall()

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,…
Nina
  • 13
  • 3
0
votes
0 answers

ERROR PYTHON: name 'cairosvg' is not defined

I alredy have a problem. Show cairosvg as undefined. I wish save Turtle object as png. I already installed the canvasvg and cairosvg libraries, but even so I keep getting the error. I leave my code as a sample. Thank you from turtle import…
-1
votes
1 answer

Canvasvg module error

I'm writing code to save and combine images made with the turtle module, however when I go to save the image an error keeps appearing; I think in relation to the Canvasvg module itself? Could it have been installed incorrectly, and if so how can I…