Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tkinter cannot open TextBox_Bg.png #419

Open
JnrMert opened this issue Jun 6, 2024 · 0 comments
Open

Tkinter cannot open TextBox_Bg.png #419

JnrMert opened this issue Jun 6, 2024 · 0 comments

Comments

@JnrMert
Copy link

JnrMert commented Jun 6, 2024

How to Fix ?

  1. Error Message
    Tkinter-Designer/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/mertyazici/Tkinter-Designer/gui/gui.py", line 117, in
    text_box_bg = tk.PhotoImage(file=ASSETS_PATH / "TextBox_Bg.png")
    File "/Users/mertyazici/.pyenv/versions/3.9.1/lib/python3.9/tkinter/init.py", line 4062, in init
    Image.init(self, 'photo', name, cnf, master, **kw)
    File "/Users/mertyazici/.pyenv/versions/3.9.1/lib/python3.9/tkinter/init.py", line 4007, in init
    self.tk.call(('image', 'create', imgtype, name,) + options)
    _tkinter.TclError: couldn't recognize data in image file "/Users/*******/Tkinter-Designer/gui/assets/TextBox_Bg.png"

  2. i double check TextBox_Bg can open with Pillow
    from PIL import Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant