Re: Attaching files in windows using Python.

2006-03-11 Thread Roger Upole
You might want to try using win32gui.GetOpenFileNameW. It uses keyword arguments and doesn't require that you build a struct yourself: win32gui.GetOpenFileNameW(File='myfile.txt', Filter='Texts and scripts\0*.txt;*.py\0Py stuff\0*.py\0') Roger "sri2097" <[EMAIL PROTECTED]> wrote in message

Re: Attaching files in windows using Python.

2006-03-07 Thread sri2097
Hi all, I have got this far till now - import win32gui, struct, array, string OFN_ALLOWMULTISELECT=0x0200 OFN_EXPLORER=0x0008 def arrayToStrings(resultArray): """return list-of-strings corresponding to a char array, where each string is terminated by \000, and the whole