_tkinter.TclError: bitmap "images/iconbitmap.ico" not defined _____ Import "backend" could not be resolvedPylancereportMissingImports)

See original GitHub issue

like the title says i have the following problems with tkinter_designer.py

  1. import backend isnt working properlly (atleast vscode is having trouble)

  2. if i try to run the script i get to following error message:

-->>>python3 tkinter_designer.py
Traceback (most recent call last):
  File "/home/shaco/Tkinter-Designer/tkinter_designer.py", line 55, in <module>
    window.iconbitmap("images/iconbitmap.ico")
  File "/usr/lib/python3.9/tkinter/__init__.py", line 2080, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "images/iconbitmap.ico" not defined

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
ParthJadhavcommented, Jun 6, 2021

Ohh I see. I’ll look into it. Thanks for letting us know.

1reaction
piccolosercommented, Jun 7, 2021

Looks like something an import of the os module and using os.path.join() would fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tkinter TclError: error reading bitmap file - Stack Overflow
The problem is not the code, but the icon. I tried creating an xbm with another program than Gimp (some KDE icon editor),...
Read more >
Issues - GitHub
ico format is not compatible with the Tkinter implementation on OpenSUSE. Can you try putting the attached .png file in the same folder...
Read more >
iconphoto() method in Tkinter | Python - GeeksforGeeks
from tkinter import Tk master = Tk() photo = PhotoImage(file = "Any image ... TclError: can't use "info.png" as iconphoto: not a photo...
Read more >
_tkinter.TclError: bitmap "Icon.gif" not defined - Python Forum
I'm not sure why I'm getting this error as I've saved the icon.gif file in the same folder as the program itself. Can...
Read more >
_tkinter.TclError: bitmap "MyOwn.ico" not defined : r/Tkinter
You can't use an ico file as icon on Linux. You should use the iconphoto method, with which you can use any format...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found