Kivy wait for animation to finish before continuing
<p>How can I wait for kivy Animation to finish before allowing the code that started it to continue? For example, the following method updates the widget position:</p>

<pre><code>def update_actor_widget(self, actor):
    final = self._get_screen_pos(actor.location)
    a = Animation(x=final[0], y=final[1], duration=0.5)
    a.start(actor.widget)
</code></pre>

<p>I do not want it to return (thus possibly allowing other animations to start) before the <code>actor</code> actually is where it belongs. Using time.sleep() just hangs the app altogether. Using <code>Animation.on_complete</code> does schedule something to happen when the animation is complete, but doesn't block the execution of the function that called animation.</p>