Hello all:
Do anyone known how to pop up a dialog box for the user to select all and one file from a folder
At the movement, my coding just can pop up a dialog box for the user to select one file from folder.
I am using a linux now, I add the -option with -multiple, but it doesn't do nothing. Would anyone known the option for linux.
Do anyone known how to pop up a dialog box for the user to select all and one file from a folder
At the movement, my coding just can pop up a dialog box for the user to select one file from folder.
I am using a linux now, I add the -option with -multiple, but it doesn't do nothing. Would anyone known the option for linux.
Code:
menu .mbar
. configure -menu .mbar
menu .mbar.file -tearoff 0
.mbar add cascade -label "File" -underline 0 -menu .mbar.file
.mbar.file add command -label "Open" -underline 0 -command openFile
proc openFile {} {
set filename [tk_getOpenFile]
set thefile [open $filename r -multiple 1]
set filecontent [read $thefile]
close $thefile
}