$label=Paw::Label-new($text, [$color], [$name]);>
Example
$label=Paw::Label->new(text=>"Text", color=>3, name=>"Linux_Label");
Parameter
text => Text of the label color => The colorpair must be generated with Curses::init_pair(pair_nr, COLOR_fg, COLOR_bg) [optionally] name => Name of the widget [optionally]
Change the text of the label to the string $text.
$label->set_text("changed label text");
returns the label-text.
$text=$label->get_text();
the widget moves to the new absolute screen position. if you set only one of the two parameters, the other one keeps the old value.
$label->abs_move_widget( new_x=>5 ); #y-pos is the same
returns an array of two values, the x-position and the y-position of the widget.
($xpos,$ypos)=$label->get_widget_pos();
Set a new color_pair for the widget.
$box->set_color(3);
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.