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

Problem displaying the mapview while using threads #145

Open
Xenius1 opened this issue Aug 28, 2024 · 0 comments
Open

Problem displaying the mapview while using threads #145

Xenius1 opened this issue Aug 28, 2024 · 0 comments

Comments

@Xenius1
Copy link

Xenius1 commented Aug 28, 2024

Hello,
So I'm writing a program using Tkintermapview to display the position of a vehicule on a map. In my code I use threading and it looks like the display of the map is impacted by that, this is the error that I get :

Exception ignored in: <function PhotoImage.del at 0x000001DDCC4540D0>
Traceback (most recent call last):
File "C:\Programs\Python\python39_64\lib\site-packages\PIL\ImageTk.py", line 132, in del
name = self.__photo.name
AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'

And that's the display of the map as it is right now
image

At first there was no problem with the mapview in the early stages of the code, even when first adding threading, but I did some optimisations but no changes that impact the fonctionning, no fonction added etc.

Note that the "map scare" is there with the zoom in zoom out button, everything that I want to display but not the map.

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