Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tk_getOpenFile and multiple option

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi!

In Tcl/Tk 8.3.4 doc it says that one can use multiple option with tk_getOpenFile to select multiple files at once. I keep getting errors with this though I have just installed the latest version. Has anybody experienced this? Is there a way around this?

Thanks!
 
I didn't see a multiple option with Tcl 8.3.4.
The manual entry says: "The tk_getOpenFile command is usually associated with the Open command in the File menu. Its purpose is for the user to select an existing file only."

The
Code:
-multiple
option comes with 8.4:
"tk_getOpenFile ?... -multiple ... -message ...? "

ulis
 
you are right my mistake!

so
1) where can I download v8.4 for free?
2) how can I do this with 8.3.4?

Thanks!
 
As for option 1, you can get precompiled binaries for Windows, Linux, and Solaris by downloading the ActiveTcl release from ActiveState. ActiveTcl includes Tcl plus several popular extensions, and is freely available from ActiveState at To get the 8.4 alpha version, click the "Download Beta" link. The regular "Download" link gets you the 8.3.4-based release. You can also pick up the Tcl 8.4 alphas direct from the development site, The Windows and Macintosh releases are available in binary format; for all other platforms, you'll need to download the sources and compile them.

As for option 2, you can't. Unless you want to create your own file selection dialogs from scratch. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
For option 2 tkfbox can be what you need: a pure Tcl/Tk implementation of tk_getOpenFile.

You can get it here: (for download, click on [1] near the top of the page)

Good luck!

ulis
 
thanks to both of your for your suggestions!

Fabien
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top