import sys
from tkinter import *
from tkinter import filedialog
root = Tk()
root.title('Tk test')
What could cause an open file dialog window in Tkinter/Python to be really slow to close after the user selects a file?