TomSchimansky / TomSchimansky/TkinterMapView
Tkinter callback issue with pyimage8
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 743
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
Great Project, not sure if this error is called wrong from customtk as I am instantiating this object from a tkbutton in a seperate window.
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\wills\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Users\wills\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 839, in callit
func(*args)
File "C:\Users\wills\Desktop\scratch\venv\lib\site-packages\tkintermapview\map_widget.py", line 573, in update_canvas_tile_images
canvas_tile.set_image(image)
File "C:\Users\wills\Desktop\scratch\venv\lib\site-packages\tkintermapview\canvas_tile.py", line 33, in set_image
self.draw(image_update=True)
File "C:\Users\wills\Desktop\scratch\venv\lib\site-packages\tkintermapview\canvas_tile.py", line 59, in draw
self.canvas_object = self.map_widget.canvas.create_image(canvas_pos_x,
File "C:\Users\wills\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 2819, in create_image
return self.create('image', args, kw)
File "C:\Users\wills\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 2805, in _create
return self.tk.getint(self.tk.call(
_tkinter.TclError: image "pyimage8" doesn't exist
The instantiated object opens its new window fine, however the map is blank white and wont search
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the separate-window setup described in the issue, then read tkintermapview/map_widget.py around update_canvas_tile_images and tkintermapview/canvas_tile.py around set_image and draw. Confirm the cause of the missing pyimage8 image and verify that the map renders and search works in the new window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100