access a component in a tkinter frame class from another frame class
I created a 2 Frames application in tkinter inspired by https://www.geeksforgeeks.org/how-to-change-the-tkinter-label-text/. The purpose is to import a new image by clicking on the start button, and I save it on a map.json file. When I click on the button, the frame switches. However, I want while having clicked on the button to see the image on the EditMenu Frame. Since the button is in the Home Frame, I could’t find a way to access the label in EditMenu. the line edit_frame.map_image_label = config(image=map_image)enter code here
gives the following error : NameError: name 'config' is not defined. Did you mean: 'self.config'?
PS : The json part of the code doesn’t work for now, pay no attention