I have a parent window in tkinter that opens a child window like this:

```
def openChild(data):
            callChildFunc(data,"y")

Button(dash, text="Open", command=partial(openChild, data))

```

This calls a function `callChildFunc(data,fill)` which takes input and saves it to a `json` file. The child window closes like this:

```
def getInput(file):
            #bunch of commands to save data from input fields...
            childform.destroy()

Button(childform, text="Save", command=partial(getInput, data))

```

I want to call a function in the parent window when the child window is destroyed. Is there any way for the parent window to detect when the child is destroyed, or a way to pass an argument from the destroyed window back to the parent?