Im using TkinterMapView (https://github.com/TomSchimansky/TkinterMapView) and im trying to store data in a maker when i create it and then access said data when i call a function from it – my code is as follows:
import tkinter
import tkinter.messagebox
from tkintermapview import TkinterMapView
from tkinter import simpledialog
class App(tkinter.Tk):
APP_NAME = "name.py"
WIDTH = 800
HEIGHT = 750
def __init__(self, *args, **kwargs):
tkinter.Tk.__init__(self, *args, **kwargs)
#command that im calling from the marker
def click_command(self, marker):
self.map_widget.delete_all_marker()
#creating marker
self.map_widget.set_marker(56.243350, -3.9111328, text="Example_text", marker_color_circle = '#E622C5', command = self.click_command)