overlay icon indicating copy to clipboard operation
overlay copied to clipboard

Linux: bad attribute "-transparent": must be -alpha, -topmost, -zoomed, -fullscreen, or -type

Open SIGSTACKFAULT opened this issue 3 years ago • 1 comments

it almost works!

when I comment out window.py, line 63, it works! but it's not transparent. image If you can fix this, the package will probably be good on Linux. I admit that this is literally my first ever windowed application, so I don't have the skills to fix it myself.

also here's my relevant bit of code.

win = Window()
label = tk.Label(win.root, text="sigmar.py")
label.pack()
Window.launch()

(there's a bonus point available if you can figure out what i'm messing with)

SIGSTACKFAULT avatar Sep 30 '21 02:09 SIGSTACKFAULT

I only tried this code: from overlay import Window

win = Window() Window.launch()

and first I did it in the terminal, and got a white square window, which didn't seem transparent. Then I made a script with the exact same code, and got the same error as you. So I changed "transparent" in Window.py to "alpha" and added "import tkinter as tk" into my script, after that it worked too.

I suspect it doesn't have to be alpha, was just the parameter I chose.

MasterChenSensei avatar Feb 01 '22 01:02 MasterChenSensei