Individual Widget Transparency Hack - Python Tkinter GUI Tutorial #136

in #diy4 years ago (edited)

In this video I'm going to show you a hack that will make any individual widget transparent with Tkinter and Python.

In the last video I showed you how to make an entire app transparent. In this video we'll use a different method to make individual widgets transparent using wm_attributes.

Start by setting a transparent color for our app:
root.wm_attributes('-transparentcolor', 'red')

Now, any widget that uses red will become transparent!

This is a VERY hacky method and it has a few drawbacks, which I'll discuss in the video...but strictly speaking...it works!

✅ 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