import win32ui o = win32ui.CreateFileDialog( 1, ".txt", "default.txt", 0, "Text Files (*.txt)|*.txt|All Files (*.*)|*.*|") o.DoModal() print o.GetPathName()
Automation of Applications with Python for Windows – The Script Collection
import win32ui o = win32ui.CreateFileDialog( 1, ".txt", "default.txt", 0, "Text Files (*.txt)|*.txt|All Files (*.*)|*.*|") o.DoModal() print o.GetPathName()