$fd=Paw::Filedialog-new([$height], [$width], [$name], [$dir])>;
Parameter
$height => number of rows [optionally] $width => number of columns [optionally] $name => name of the widget [optionally] $dir => the directory in which the filedialog will be started ("." default) [optionally]
When the filedialogbox is closed by the "ok"-button, it returns an array of all marked filenames (without path)
Example
$fd=Paw::Filedialog->new(dir=>"/etc");
Set the directory where the filedialog will begin.
$fd->set_dir(); # start in "." $fd->set_dir("/etc"); # start in "/etc"
Returns the path of the filedialogbox.
$path=$fd->get_dir(); #$path = "/etc" (for example).
Raises the filedialog. If the box is closed by the "ok-button", it returns an array of all marked filenames (without path). If the box is closed by the "cancel-button", no return of the marked files takes place.
@files=$fd->draw();
activates the border of the widget (optionally also with shadows).
$widget->set_border("shade"); or $widget->set_border();
To install Paw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paw
CPAN shell
perl -MCPAN -e shell install Paw
For more information on module installation, please visit the detailed CPAN module installation guide.