tkFileDialog without a parent window

Stephen Boulet stephen.boulet at motorola.com
Thu Jul 3 15:52:42 EDT 2003


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





More information about the Python-list mailing list