NAME

Tk::FilePicker - Tk::FileBrowser based file dialog

SYNOPSIS

require Tk::FilePicker;
my $p = $window->FilePicker(@options);
my @files = $p->pick;

DESCRIPTION

CONFIG VARIABLES

Switch: -checkoverwrite

Only works when the '-selectmode' option is set to single. Checks if the selected file exists and prompts and overwrite dialog.

Switch: -selectstring

Text string for the 'Ok' button.

ADVERTISED SUBWIDGETS

Browser
Entry

METHODS

All the pick methods can be called with these options:

-initialdir

Directory to load on pop.

-initialfile

Suggested file name.

The pick methods always return their results in list context. So even when you expect only one result you have to do:

my ($file) = $fp->pickWhatEver(%options);
pick

The basic pick method. Besides the two options above you can give it many of the options of Tk::FilePicker and Tk::FileBrowser.

pickFileOpen

Calls pick configured to select one file for opening.

pickFileOpenMulti

Calls pick configured to select multiple files for opening.

pickFileSave

Calls pick configured to select one file for saving. Pops a dialog for overwrite if the selected file exists.

pickFolderSelect

Calls pick configured to select one folder.

LICENSE

Same as Perl.

AUTHOR

Hans Jeuken (hanje at cpan dot org)

TODO

BUGS AND CAVEATS

SEE ALSO