how to make a tkinter window transparent

Solutions on MaxInterview for how to make a tkinter window transparent by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to make a tkinter window transparent"
Giacomo
11 Jan 2020
1
2# Import module
3from tkinter import *
4 
5# Create object
6root = Tk()
7 
8# Adjust size
9root.geometry("400x400")
10 
11# Create transparent window
12root.attributes('-alpha',0.5)
13 
14# Execute tkinter
15root.mainloop()