0

I'm trying to create a transparent window using Python 3.8 and TKinter on Linux Mint. I found a lot of codes and videos, but nothing is working. Does anyone know what can be happening?

My current code:

from tkinter import Tk 
root = Tk()
root.attributes('-type', 'normal')
root.attributes('-alpha', 0.3)
root.mainloop()

I also tried some variations:

from tkinter import Tk
root = Tk()
root.wait_visibility(root)
root.attributes('-type', 'normal')
root.attributes('-alpha', 0.1)
root.mainloop()

and

from tkinter import Tk 
root = Tk()
root.wait_visibility(root)
root.attributes('-alpha', 0.1)
root.mainloop()

Thanks!

Roberto
  • 56
  • 1
  • 6

0 Answers0