1. PyPA
  2. Python Packaging Authority Projects
  3. pypi
  4. Issues


Issue #86 resolved

Wrong validation when creating animation

Tomas Kislan
created an issue

import svgwrite

dwg = svgwrite.Drawing('test_animate.svg', size = (64, 64), profile='tiny')

c = dwg.circle((32, 32), 10) c.add(dwg.animate('r', values=[0,10], dur='3s', repeatDur='indefinite')) dwg.add(c)


this crashes with exception: TypeError: '0;10' is not a valid value for attribute 'values' at svg-element <animate>.

Which is obviously wrong, since when I change to "values=[0]" it creates the file, but with values set to 0 If I manualy edit it to '0;10', and after open it in browser, it animates just fine

Comments (1)

  1. Log in to comment