Tickit::Widget::Box - contain a single child widget
Tickit::Widget::Box
use Tickit; use Tickit::Widget::Box; use Tickit::Widget::Static; my $tickit = Tickit->new; my $hello = Tickit::Widget::Static->new( text => "Hello, world", align => "centre", valign => "middle", ); my $box = Tickit::Widget::Box->new; $box->add( $hello ); $tickit->set_root_widget( $box ); $tickit->run;
This container widget holds a single child widget and implements a border by using Tickit::WidgetRole::Borderable.
Paul Evans <leonerd@leonerd.org.uk>
To install Tickit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit
CPAN shell
perl -MCPAN -e shell install Tickit
For more information on module installation, please visit the detailed CPAN module installation guide.