Found this on Python Daily URL. Easy to use dialog library for windows:
>>> import EasyDialogs
>>> fn = EasyDialogs.AskFileForOpen()
>>> fn
'C:\\Documents and Settings\\Peter\\NTUSER.INI'
This may finally stop me hard coding file names into scripts. I occasionally use the PythonWin librarys to access the common dialogs but that it is a lot like hard work. wxWindows is also hastle if all you want is a file name.
The site also mentions an interesting idea: packing python into executables and then using UPX to compress it.
|