$popup=Paw::Popup-new([$height], [$width], [$shade], \@buttons, \$text, [$name]);>
Parameter
$height => number of rows [optionally] $width => number of columns [optionally] $shade => popup box has a shadow (shade=>1) $name => name of the widget [optionally] \@buttons => an array of strings for the labels on the buttons in the box. \$text => reference to a scalar with the Text.
Example
@butt=('Okay', 'Cancel'); $text=('Do you really want to continue ?'); $pu=Popup::new(height=>20, width=>20, buttons=>\@butt, text=>\$text);
If a button is pressed, the box closes and the number of the button is returned (beginning by 0).
raises the popup-window, returns the number of the pushed button.
$button=$pu->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.