Skip to content
/ tksvg Public

An extension for Tk to read SVG images based on nanosvg

License

Notifications You must be signed in to change notification settings

oehhar/tksvg

Repository files navigation

tksvg

This package adds support to read the SVG image format from Tk. The actual code to parse and raster the SVG comes from nanosvg.

Example usage:

package require tksvg
set img [image create photo -file orb.svg]
pack [label .l -image $img]

Note: this package is not required for Tk 8.7, as this functionality is included in the core. The package index file simulates a load on this version but actually does nothing.