I'm using the following code to get a file name: import tkFileDialog tkFileDialog.askopenfilename(filetypes=[("HDF Files", ".hdf")]) How can I do this without an empty tk window popping up and hanging around after the dialog is closed? Thanks. -- Stephen