So I'm trying to make a program that will open up some graphs in separate windows and have a save button that will allow you to make changes to said graph and then save it. The saving functionality works except when you open a second window, clicking the button in the first window will save the graph in the second one. Is there a way to keep one button pointing to the window that it was created in?