Skip to content

Problem displaying the mapview while using threads #145

@Maxime4616

Description

@Maxime4616

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions