In this video I'll show you how to create a fun little on/off button that will switch between on and off whenever you click on it.
For this video we'll be using two images, and on image and an off image. We'll use those images as the background of a button.
Then we'll create a Boolean (true/false) variable to keep track of whether the button has been clicked (True) or not (False).
Whenever we click the button we'll call a function that will change the Boolean variable from True to False or False to True and update the
image.
✅ Watch The tKinter Playlist
http://bit.ly/2UFLKgj
▶️ Get The Code
https://bit.ly/3fLFQ8p
✅ 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