_tkinter.TclError: bitmap "images/iconbitmap.ico" not defined _____ Import "backend" could not be resolvedPylancereportMissingImports)
See original GitHub issuelike the title says i have the following problems with tkinter_designer.py
-
import backendisnt working properlly (atleast vscode is having trouble) -
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:
- Created 2 years ago
- Reactions:1
- Comments:14 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ohh I see. I’ll look into it. Thanks for letting us know.
Looks like something an import of the
osmodule and usingos.path.join()would fix.