empty window when using askopenfile

Peter Otten __peter__ at web.de
Fri Apr 16 16:06:35 EDT 2004


Sorin Gherman wrote:

> Is there any way to minimize/hide the annoying default, empty Tk
> window that shows behind the native file opening dialog , when using
> askopenfile, etc, in tkCommonDialog?

import Tkinter, tkFileDialog
root  = Tkinter.Tk()
root.withdraw()
tkFileDialog.askopenfile()

Peter




More information about the Python-list mailing list