Destroy the dialog window, clearing the reference to the widget that had the initial focus.
tkinter.simpledialog/Dialog.destroy
Dialog.destroy