root = Tk()
root.title('Tk test')
root.update()
print(filedialog.askopenfilename(title='dialogue? surely.'))
What could cause an open file dialog window in Tkinter/Python to be really slow to close after the user selects a file?