Hello all:
I'd like to ask you give me some advises. And I use linux
machine at the movement.
I want to select a song or music from a folder, and put the song or music of the name on a listbox which in another window.
My question are following;
1> which option can support me to get the song or the music of name?
2> after the song or music of name is in the listbox, I can also save the song or music which in the listbox to another directory when I click a save button.
So the song or music name is not just a simply string, I guest. If the name not just a simply name, what is it?
This is another my question.
Would anyone help me. please.
I'd like to ask you give me some advises. And I use linux
machine at the movement.
I want to select a song or music from a folder, and put the song or music of the name on a listbox which in another window.
My question are following;
1> which option can support me to get the song or the music of name?
2> after the song or music of name is in the listbox, I can also save the song or music which in the listbox to another directory when I click a save button.
So the song or music name is not just a simply string, I guest. If the name not just a simply name, what is it?
This is another my question.
Would anyone help me. please.
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 -multiple 1]
set thefile [open $filename r]
puts "the file : $thefile"
set filecontent [read $thefile]
close $thefile
}