animate

Module: animate

Inheritance diagram for pysvg.animate:

(C) 2008, 2009 Kerim Mansour For licensing information please refer to license.txt

Classes

animate

class pysvg.animate.animate(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.ConditionalAttrib, pysvg.attributes.ExternalAttrib, pysvg.animate.animationEventsAttrib, pysvg.animate.animationAttrib, pysvg.animate.animationAttributeAttrib, pysvg.animate.animationTimingAttrib, pysvg.animate.animationValueAttrib, pysvg.animate.animationAdditionAttrib

Class representing the animate element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_accumulate()
get_additive()
get_attributeName()
get_attributeType()
get_begin()
get_by()
get_calcMode()
get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_dur()
get_end()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_from()
get_id()
get_image_rendering()
get_keySplines()
get_keyTimes()
get_mask()
get_max()
get_min()
get_onactivate()
get_onbegin()
get_onclick()
get_onend()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_onrepeat()
get_opacity()
get_pointer_events()
get_repeatCount()
get_repeatDur()
get_requiredExtensions()
get_requiredFeatures()
get_restart()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_to()
get_transform()
get_values()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_accumulate(accumulate)
set_additive(additive)
set_attributeName(attributeName)
set_attributeType(attributeType)
set_begin(begin)
set_by(by)
set_calcMode(calcMode)
set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_dur(dur)
set_end(end)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_from(fromField)
set_id(id)
set_image_rendering(image_rendering)
set_keySplines(keySplines)
set_keyTimes(keyTimes)
set_mask(mask)
set_max(max)
set_min(min)
set_onactivate(onactivate)
set_onbegin(onbegin)
set_onclick(onclick)
set_onend(onend)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_onrepeat(onrepeat)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_restart(restart)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_to(toField)
set_transform(transform)
set_values(values)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

animateColor

class pysvg.animate.animateColor(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.ConditionalAttrib, pysvg.attributes.ExternalAttrib, pysvg.animate.animationEventsAttrib, pysvg.animate.animationAttrib, pysvg.animate.animationAttributeAttrib, pysvg.animate.animationTimingAttrib, pysvg.animate.animationValueAttrib, pysvg.animate.animationAdditionAttrib

Class representing the animateColor element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_accumulate()
get_additive()
get_attributeName()
get_attributeType()
get_begin()
get_by()
get_calcMode()
get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_dur()
get_end()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_from()
get_id()
get_image_rendering()
get_keySplines()
get_keyTimes()
get_mask()
get_max()
get_min()
get_onactivate()
get_onbegin()
get_onclick()
get_onend()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_onrepeat()
get_opacity()
get_pointer_events()
get_repeatCount()
get_repeatDur()
get_requiredExtensions()
get_requiredFeatures()
get_restart()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_to()
get_transform()
get_values()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_accumulate(accumulate)
set_additive(additive)
set_attributeName(attributeName)
set_attributeType(attributeType)
set_begin(begin)
set_by(by)
set_calcMode(calcMode)
set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_dur(dur)
set_end(end)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_from(fromField)
set_id(id)
set_image_rendering(image_rendering)
set_keySplines(keySplines)
set_keyTimes(keyTimes)
set_mask(mask)
set_max(max)
set_min(min)
set_onactivate(onactivate)
set_onbegin(onbegin)
set_onclick(onclick)
set_onend(onend)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_onrepeat(onrepeat)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_restart(restart)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_to(toField)
set_transform(transform)
set_values(values)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

animateMotion

class pysvg.animate.animateMotion(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.ConditionalAttrib, pysvg.attributes.ExternalAttrib, pysvg.animate.animationEventsAttrib, pysvg.animate.animationAttrib, pysvg.animate.animationTimingAttrib, pysvg.animate.animationValueAttrib, pysvg.animate.animationAdditionAttrib

Class representing the animateMotion element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_accumulate()
get_additive()
get_begin()
get_by()
get_calcMode()
get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_dur()
get_end()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_from()
get_id()
get_image_rendering()
get_keyPoints()
get_keySplines()
get_keyTimes()
get_mask()
get_max()
get_min()
get_onactivate()
get_onbegin()
get_onclick()
get_onend()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_onrepeat()
get_opacity()
get_origin()
get_path()
get_pointer_events()
get_repeatCount()
get_repeatDur()
get_requiredExtensions()
get_requiredFeatures()
get_restart()
get_rotate()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_to()
get_transform()
get_values()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_accumulate(accumulate)
set_additive(additive)
set_begin(begin)
set_by(by)
set_calcMode(calcMode)
set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_dur(dur)
set_end(end)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_from(fromField)
set_id(id)
set_image_rendering(image_rendering)
set_keyPoints(keyPoints)
set_keySplines(keySplines)
set_keyTimes(keyTimes)
set_mask(mask)
set_max(max)
set_min(min)
set_onactivate(onactivate)
set_onbegin(onbegin)
set_onclick(onclick)
set_onend(onend)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_onrepeat(onrepeat)
set_opacity(opacity)
set_origin(origin)
set_path(path)
set_pointer_events(pointer_events)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_restart(restart)
set_rotate(rotate)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_to(toField)
set_transform(transform)
set_values(values)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

animateTransform

class pysvg.animate.animateTransform(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.ConditionalAttrib, pysvg.attributes.ExternalAttrib, pysvg.animate.animationEventsAttrib, pysvg.animate.animationAttrib, pysvg.animate.animationAttributeAttrib, pysvg.animate.animationTimingAttrib, pysvg.animate.animationValueAttrib, pysvg.animate.animationAdditionAttrib

Class representing the animateTransform element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_accumulate()
get_additive()
get_attributeName()
get_attributeType()
get_begin()
get_by()
get_calcMode()
get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_dur()
get_end()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_from()
get_id()
get_image_rendering()
get_keySplines()
get_keyTimes()
get_mask()
get_max()
get_min()
get_onactivate()
get_onbegin()
get_onclick()
get_onend()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_onrepeat()
get_opacity()
get_pointer_events()
get_repeatCount()
get_repeatDur()
get_requiredExtensions()
get_requiredFeatures()
get_restart()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_to()
get_transform()
get_type()
get_values()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_accumulate(accumulate)
set_additive(additive)
set_attributeName(attributeName)
set_attributeType(attributeType)
set_begin(begin)
set_by(by)
set_calcMode(calcMode)
set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_dur(dur)
set_end(end)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_from(fromField)
set_id(id)
set_image_rendering(image_rendering)
set_keySplines(keySplines)
set_keyTimes(keyTimes)
set_mask(mask)
set_max(max)
set_min(min)
set_onactivate(onactivate)
set_onbegin(onbegin)
set_onclick(onclick)
set_onend(onend)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_onrepeat(onrepeat)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_restart(restart)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_to(toField)
set_transform(transform)
set_type(type)
set_values(values)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

animationAdditionAttrib

class pysvg.animate.animationAdditionAttrib

The animationAdditionAttrib class defines the animationAddition.attrib attribute set.

get_accumulate()
get_additive()
set_accumulate(accumulate)
set_additive(additive)

animationAttrib

class pysvg.animate.animationAttrib

Bases: pysvg.attributes.XLinkAttrib

The animationAttrib class defines the animation.attrib attribute set.

animationAttributeAttrib

class pysvg.animate.animationAttributeAttrib

The animationAttributeAttrib class defines the animationAttribute.attrib attribute set.

get_attributeName()
get_attributeType()
set_attributeName(attributeName)
set_attributeType(attributeType)

animationEventsAttrib

class pysvg.animate.animationEventsAttrib

The animationEventsAttrib class defines the animationEvents.attrib attribute set.

get_onbegin()
get_onend()
get_onload()
get_onrepeat()
set_onbegin(onbegin)
set_onend(onend)
set_onload(onload)
set_onrepeat(onrepeat)

animationTimingAttrib

class pysvg.animate.animationTimingAttrib

The animationTimingAttrib class defines the animationTiming.attrib attribute set.

get_begin()
get_dur()
get_end()
get_fill()
get_max()
get_min()
get_repeatCount()
get_repeatDur()
get_restart()
set_begin(begin)
set_dur(dur)
set_end(end)
set_fill(fill)
set_max(max)
set_min(min)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_restart(restart)

animationValueAttrib

class pysvg.animate.animationValueAttrib

The animationValueAttrib class defines the animationValue.attrib attribute set.

get_by()
get_calcMode()
get_from()
get_keySplines()
get_keyTimes()
get_to()
get_values()
set_by(by)
set_calcMode(calcMode)
set_from(fromField)
set_keySplines(keySplines)
set_keyTimes(keyTimes)
set_to(toField)
set_values(values)

mpath

class pysvg.animate.mpath(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.XLinkAttrib, pysvg.attributes.ExternalAttrib

Class representing the animateColor element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_id()
get_image_rendering()
get_mask()
get_onactivate()
get_onclick()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_opacity()
get_pointer_events()
get_requiredExtensions()
get_requiredFeatures()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_transform()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_id(id)
set_image_rendering(image_rendering)
set_mask(mask)
set_onactivate(onactivate)
set_onclick(onclick)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_transform(transform)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

set

class pysvg.animate.set(**kwargs)

Bases: pysvg.core.BaseShape, pysvg.attributes.CoreAttrib, pysvg.attributes.ConditionalAttrib, pysvg.attributes.ExternalAttrib, pysvg.animate.animationEventsAttrib, pysvg.animate.animationAttrib, pysvg.animate.animationAttributeAttrib, pysvg.animate.animationTimingAttrib

Class representing the set element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_attributeName()
get_attributeType()
get_begin()
get_class()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_rendering()
get_cursor()
get_display()
get_dur()
get_end()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_id()
get_image_rendering()
get_mask()
get_max()
get_min()
get_onactivate()
get_onbegin()
get_onclick()
get_onend()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
get_onrepeat()
get_opacity()
get_pointer_events()
get_repeatCount()
get_repeatDur()
get_requiredExtensions()
get_requiredFeatures()
get_restart()
get_shape_rendering()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_systemLanguage()
get_text_rendering()
get_to()
get_transform()
get_visibility()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_attributeName(attributeName)
set_attributeType(attributeType)
set_begin(begin)
set_class(aClass)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_display(display)
set_dur(dur)
set_end(end)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_id(id)
set_image_rendering(image_rendering)
set_mask(mask)
set_max(max)
set_min(min)
set_onactivate(onactivate)
set_onbegin(onbegin)
set_onclick(onclick)
set_onend(onend)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)
set_onrepeat(onrepeat)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_repeatCount(repeatCount)
set_repeatDur(repeatDur)
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_restart(restart)
set_shape_rendering(shape_rendering)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_systemLanguage(language_code)
set_text_rendering(text_rendering)
set_to(toField)
set_transform(transform)
set_visibility(visibility)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file