[python-win32] Python-win32 Digest, Vol 48, Issue 2
Tony Cappellini
cappy2112 at gmail.com
Mon Mar 5 19:41:09 CET 2007
Date: Sun, 4 Mar 2007 16:18:55 -0500
From: "Roger Upole" <rwupole at msn.com>
Subject: [python-win32] Re: win32gui.GetOpenFileName()
To: <python-win32 at python.org>
Message-ID: <000401c75ea2$b8a12570$0100a8c0 at rupole>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
This function expects a buffer containing an OPENFILENAME structure,
created using the struct module or some other means.
> Is there a way I can select multiple files with either of the above
> mentioned calls?
> (pressing Control doesn't work)
>>Pass win32con.OFN_ALLOWMULTISELECT|win32con.OFN_EXPLORER
>> in the Flags to enable this.
Thanks Roger, where did you find this information?
"From the Pythin Win help file"
win32gui (more).GetOpenFileName
int = GetOpenFileName()
Creates an Open dialog box that lets the user specify the drive,
directory, and the name of a file or set of files to open.
Return Value
If the user presses OK, the function returns TRUE. Otherwise, use
CommDlgExtendedError for error details.
More information about the Python-win32
mailing list