overlay
overlay copied to clipboard
_tkinter.TclError: unknown color name "1"
When running any of the examples on Python 3.8 over Windows 10, I get the same "unknown color name" error.
When I run
from overlay import Window
win = Window()
Window.launch()
I get
Traceback (most recent call last):
File "D:\Desktop\test.py", line 3, in <module>
win = Window()
File "D:\ProgramData\Anaconda3\lib\site-packages\overlay\window.py", line 63, in __init__
self._root.wm_attributes('-transparent', True)
File "D:\ProgramData\Anaconda3\lib\tkinter\__init__.py", line 1788, in wm_attributes
return self.tk.call(args)
_tkinter.TclError: unknown color name "1"
Having the same issue.
Same issue also.
Same issue here (Windows 10)
in file window.py change True //self._root.wm_attributes('-transparent', True) to "name_of_color" Ex self._root.wm_attributes('-transparent', "white") it's work for me
in file window.py change True //self._root.wm_attributes('-transparent', True) to "name_of_color" Ex self._root.wm_attributes('-transparent', "white") it's work for me
same issue still, but this works
in file window.py change True //self._root.wm_attributes('-transparent', True) to "name_of_color" Ex self._root.wm_attributes('-transparent', "white") it's work for me
It works for me too
in file window.py change True //self._root.wm_attributes('-transparent', True) to "name_of_color" Ex self._root.wm_attributes('-transparent', "white") it's work for me
It works for me too
Where and what to replace? I am in window.py and I clicked Ctrl + F (find), and there is no "True //self._root.wm_attributes('-transparent', True)"
@akisha009
Where and what to replace? I am in window.py and I clicked Ctrl + F (find), and there is no "True //self._root.wm_attributes('-transparent', True)"
You need to replace self._root.wm_attributes('-transparent', True)
with self._root.wm_attributes('-transparent', "white")
(= replace True
with "white"
)
https://github.com/davidmaamoaix/overlay/blob/ebfba98729d77a91e77777a514039abdb86c3e5b/overlay/window.py#L63
PR #8 will fix this