Win32gui... file dialogs?

Alex Martelli alex at magenta.com
Sat Aug 26 08:39:15 EDT 2000


"Neil Hodgson" <neilh at scintilla.org> wrote in message
news:YuOp5.18483$Xg.119730 at news-server.bigpond.net.au...
>
> Alex Martelli wrote
>
> > This seems to work just fine (on my Win98 box, with Python
> > 1.6b1 from the Activestate distribution),
>
>    I have the same Python setup on W2K.

Good!  I have no w2k handy to check...


> > BUT, the multiselect
> > feature isn't working...!  The flag is being "seen": to verify
    [snip]
> > the last-clicked file is in the result.
>
>    You need to use Ctrl+Click when in multi-select mode.

Oops!  You're right == with Ctrl-click it works, and gives, e.g:
>>> ofn.openNames()
['C:\\My Documents', 'nntp_servers.htm', 'normal.htm', 'oksimple.htm']
>>>
i.e., first string is the directory, then come the files, one per
string.  Guess the only case in which I'm used to do multi
file selection is from Visual C++'s "Add files to project", and
that one does some magic to make the Ctrl not needed.

Anyway, in this case I guess my previously posted code
answers the original querant (it will no doubt need some
tweaking to allow filters, etc, but that should be easy).


Alex






More information about the Python-list mailing list