Tkintermapview attribute state

[Terry Jan Reedy]

Sorry for any confusion. I thought by referencing the module name, it would be recognized. I was not thinking specifically about it being a third party module.

Paul:

I understand what you are saying regarding variable names. In this instance, I am still leaning to something in the tkintermapview module. I did look on github for a way to contact the author but did not see any links to leave a message. I’ll give it a second look.

I created a test code creating an instance of the map with one marker. I then hide the marker via a button. the marker is hidden are desired. I then scroll the map until that portion of the map is outside the viewing frame and back. The marker reappears.

As the state attribute was added by me to the module, I have to assume the internal code doesn’t handle the state change in some part of the code that handles the draw functions.

Regarding variable names, when I created the test map, I called my map “map”. Neither of my Hide or Show method was working. I scratched my head for a good bit until it occurred to me that maybe my object name was causing the problem. Renamed the map object to something else and my methods started working…Live and Learn