August 2015
Intermediate to advanced
246 pages
4h 21m
English
The use of graphics opens up a diversity of options: one of them is animations. Kivy is useful for this task. For this recipe, we will develop a simple animation of a button where, if you touch it, the animation is performed.
Animations are a natural extension of the graphics concepts. It is good to have those concepts clear so, as recommended, you should read the previous recipes of this chapter.
Here we are going to use KV file where we set the button to perform the animation that will be defined in the Python file as a method of the root widget class. For this, follow these steps:
root.animate() method in ...Read now
Unlock full access