List Info

Thread: Re: Python-win32 Digest, Vol 48, Issue 2




Re: Python-win32 Digest, Vol 48, Issue 2
user name
2007-03-05 12:41:09
Date: Sun, 4 Mar 2007 16:18:55 -0500
From: "Roger Upole" <rwupolemsn.com>
Subject: [python-win32]  Re: win32gui.GetOpenFileName()
To: <python-win32python.org>
Message-ID: <000401c75ea2$b8a12570$0100a8c0rupole>
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.
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: win32gui.GetOpenFileName()
country flaguser name
Argentina
2007-03-06 00:31:57
En Mon, 05 Mar 2007 15:41:09 -0300, Tony Cappellini
<cappy2112gmail.com>  
escribió:

>> 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?

Look at the Microsoft site, MSDN, the primary source of
information.
Many win32xxx modules are just a thin wrapper around the
related Windows  
functions.
In this case, see http://msdn2.microsoft.com/en-us/library/ms646839.aspx


-- 
Gabriel Genellina

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )