1from tkinter import *
2
3root = Tk()
4
5# this will give a translucent window
6root.attributes('-alpha', 0.5)
7
8# this will give a transparent windows
9root.attributes('-alpha', 0)
10
11# this will give a solid color windows
12root.attributes('-alpha', 1)
13
14root.mainloop()
15