Tkinter Background not showing transparent Tkinter Background not showing transparent tkinter tkinter

Tkinter Background not showing transparent


As described here, making a Tkinter window transparent is possible, but depends on your OS.

If you are on Windows, just add the following lines after creating the root:

root = Tk()# Hide the root window drag bar and close buttonroot.overrideredirect(True)# Make the root window always on toproot.wm_attributes("-topmost", True)# Define a transparent colorroot.wm_attributes("-transparentcolor", '#eeefff')

Then set your canvas' background color as the transparent color defined above:

canvas = Canvas(width=width, height=height, bg='#eeefff', highlightthickness=0)

screenshot