Files in directory undroid/tangoicons0.1 in any check-in
A Tcl/Tk package wrapping SVG items from the Tango Icon Theme version 0.8.90.
BSD for the code; the icons themselves are public domain.
package require Tk package require tksvg
package require TangoIcons TangoIcons names ?pattern? TangoIcons svg name TangoIcons image name ?size? TangoIcons image_nc name ?size? TangoIcons flush TangoIcons rebuild
names returns an alphabetically sorted list of icon names
matching the given
pattern, or all, if
pattern is omitted.
svg returns the SVG string for the icon
image creates and returns a photo image for the icon
size option specifies the integer icon size. If it is negative, the
size is in pixels, otherwise in points. The default value for
16 points. The photo image is kept in an image cache for later re-use.
image_nc is similar to method
image except that no caching is
performed, i.e. a newly created image is returned.
flush deletes all cached icon photo images.
rebuild recreates all cached icon photo images which have a size
in points. This is useful when the tk scaling factor is changed at runtime.
A utility script named
show.tcl demonstrates the usage of this package
and displays all icons in a canvas widget.