Answers for "how to make a window translucent in tkinter"

0

how to make a window translucent in tkinter

from tkinter import *

root = Tk()

# this will give a translucent window
root.attributes('-alpha', 0.5) 

# this will give a transparent windows
root.attributes('-alpha', 0) 

# this will give a solid color windows
root.attributes('-alpha', 1) 

root.mainloop()
Posted by: Guest on August-31-2021

Code answers related to "how to make a window translucent in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language