<< oldsave 5-1 xgetfile >>
removed >> removed > 5-1 > tk_getfile

tk_getfile

dialog to get one or more file paths

Calling Sequence

path = tk_getfile()
path = tk_getfile(file_mask)
path = tk_getfile(file_mask, dir)
path = tk_getfile(file_mask, dir, Title)

path = tk_getfile(. multip="1")
path = tk_getfile(. Title="string")

Parameters

file_mask

a character string which gives the file mask to use for file selection. file_mask is written with Unix convention. The default value is '*'.

dir

a character string which gives the initial directory used for file search. By default tk_getfile uses the previously selected directory.

path

is the user selected file path(s) if user answers "Ok" or the " " string if user answers "Cancel".

Title="string"

Optional argument which gives the title for the tk_getfile window. Warning: Use the new variable Title instead of the old variable title.

multip

Optional argument which allows to select more than one file at once in the tk_getfile window. If given, it must be the string "1". Otherwise, or if not given, this argument defaults to "0" i.e. only one file can be selected in the dialog.

Description

Creates a dialog window for file selection.

Examples

tk_getfile()
tk_getfile("*.sci","SCI/modules/graphics/macros")
tk_getfile(Title="Choose a file name")
tk_getfile(Title="Choose many file names at once",multip="1")
tk_getfile(multip="1")

See Also

History

VersionDescription
5.1.1 tk_getfile was published up to Scilab 5.1.1. It is replaced with uigetfile.

<< oldsave 5-1 xgetfile >>