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!
Add comment