#9 let fileopenbox open multiple files

v 0.96
open-accepted
Stephen Ferg
5
2012-07-01
2012-04-30
No

May I propose a minor modification to the fileopenbox?
Add a keyword argument multiple=None
Further on in the function modify the source with
if multple:
askopenfilenames(....)
....
else:
askopenfilename(....)
....

The fileopenbox demo could be extended with:
msg = "Multiple Python files"
title = "Open multiple files"
default="*.py"
f = fileopenbox(msg,title,default=default,multiple=True)
writeln("You chose to open files:")
for fi in f:
writeln(" %s" % fi)

my version is attached

Cheers, Janwillem

Discussion

  • Stephen Ferg
    Stephen Ferg
    2012-07-01

    • summary: open multiple files --> let fileopenbox open multiple files
    • status: open --> open-accepted