platipy / spyral

http://platipy.org
Other
49 stars 12 forks source link

AttributeError: 'SequentialAnimation' object has no attribute 'property' #69

Open icarito opened 10 years ago

icarito commented 10 years ago

Is happening to me when adding DelayAnimation like this:

delay = spyral.DelayAnimation(5)
moveout = spyral.Animation("y", spyral.easing.Linear(self.taller.y, self.height
                                                                    + self.taller.height), duration=4)
self.taller.animate(delay + moveout)

As a workaround I commented out the animation.end event handler in libraries/spyral/spyral/sprite.py:545 and 560 because I didn't need it.

icarito commented 9 years ago

I've found this can be worked around by simply adding a "property" attribute to the Animation, like so: complete = delay + moveout complete.property = "byebye" Then it works as advertised. Would be good to document this in the docs and close the issue.

acbart commented 9 years ago

Hm, a patch, but I suspect the bigger problem is that it doesn't need to be referencing .property at all, and the code base had a bit of cruft in it. Someone needs to look at the animation code and check for that line. I'm not ready to close this until I can look closely and fix that ref.