Called when the user confirms the current selection. The base implementation accepts the selection and closes the dialog; LoadFileDialog and SaveFileDialog override it to check the selection first.
tkinter.filedialog/FileDialog.ok_command
FileDialog.ok_command