-
-
Notifications
You must be signed in to change notification settings - Fork 937
Description
Hi,
I'm running into this problem when trying to run the file:
minhlong@Minhs-MacBook-Pro Tkinter-Designer % python3 gui/gui.py
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Traceback (most recent call last):
File "/Users/minhlong/Desktop/Thesis/Tkinter-Designer/gui/gui.py", line 117, in
text_box_bg = tk.PhotoImage(file=ASSETS_PATH / "TextBox_Bg.png")
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 4064, in init
Image.init(self, 'photo', name, cnf, master, **kw)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 4009, in init
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "/Users/minhlong/Desktop/Thesis/Tkinter-Designer/gui/assets/TextBox_Bg.png"
It seems like the program cannot read the Bg file