How To Create Animation With Kivy - Python Kivy GUI Tutorial #36

codemy(72)
Published in
#python
Words
161
Reading
1 min
Listen
Play
6y

In this video I'll show you how to use Animations with Kivy and Python. We'll start by animating a button to change color when you click it. Then we'll expand the size of the button and then animate it back to regular size. After that we'll move the bottom around the screen.

Finally I'll show you how to create a callback when the animation is finished so that you can do something else in the program.

To create animations, we need to import: from kivy.animation import Animation in our Python file.

Then simply create a variable and set it equal to an Animation() function. Inside that function just declare whatever you want to animate.

Then start your animation with: animate.start(widget)

✅ Watch The Kivy Playlist
https://bit.ly/37LrJ27

▶️ Get The Code
https://bit.ly/31QeMjM

✅ Subscribe To My YouTube Channel:
http://bit.ly/2IGzvOR

▶️ See More At:
https://Codemy.com

✅ Join My Facebook Group:
http://bit.ly/2GFmOBz

▶️ Learn to Code at https://Codemy.com
Take $22 off with coupon code: youtube

✅ Buy a Codemy T-Shirt!
http://bit.ly/2VC9WUN