Tkinter, Transparent Background, Linux
Is there a way to get a transparent background in a Tkinter window on Linux? The only way I see currently is: import tkinter as tk root = tk.Tk() root.overrideredirect(True) root
Solution 1:
Add this line:
root.wait_visibility(root)
before the "root.wm_attributes.." line as mentioned in this answer. It works for me on Ubuntu 16.04
Solution 2:
Solution 3:
It worked for me on Ubuntu 20.04, Linux Mint 20.1, Cinnamon Python 3.6
import tkinter as tk
root = tk.Tk()
root.overrideredirect(True)
root.wait_visibility(root)
root.wm_attributes("-alpha", 0.5)
root.mainloop()
Post a Comment for "Tkinter, Transparent Background, Linux"