Trigger the termination of the dialog window.
tkinter.filedialog/FileDialog.cancel_command
FileDialog.cancel_command