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
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
Hi all,
I have to select a particular file (using the 'Browse') button in
Windows. After this I need to populate the 'Open Dialogue Box' with the
path of the file I need (I have the entier path of the file I need).
Then I need to select the 'Open' Button.
Only after this the file I want is attache