How To Create a Switch With Kivy - Python Kivy GUI Tutorial #39
In this video I'll show you how to easily add a switch to your Kivy App.
Switches are great for toggling things on or off. To create a switch, just define it in your .kv file and set an on_active function that we can define on the python backend.
The switch will pass a switchValue when clicked that is either True or False. Then we can run a simple if statement to determine whether the switch has been switched to on or off, and take action accordingly.
✅ 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