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.wait_visibility(True)
root.wm_attributes("-alpha", 0.0)
canvas = tk.Canvas(root, width=300, height=300)
canvas.pack()
canvas.create_rectangle(50, 25, 150, 75, fill="red")
root.mainloop()
However, this is not what I want. I want to get the background to be transparent so my overlay can be something else.
I found a couple posts here, but they only cover bg transparency on Windows and Mac OS. The Linux related one is only alpha?