8000 _tkinter.TclError: couldn't recognize data in image file · Issue #469 · ParthJadhav/Tkinter-Designer · GitHub
[go: up one dir, main page]

Skip to content

_tkinter.TclError: couldn't recognize data in image file #469

@minhlongd1093

Description

@minhlongd1093

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0