Tickit::Widget::HBox - distribute child widgets in a horizontal row
Tickit::Widget::HBox
use Tickit; use Tickit::Widget::HBox; use Tickit::Widget::Static; my $tickit = Tickit->new; my $hbox = Tickit::Widget::HBox->new; foreach my $position (qw( left centre right )) { $hbox->add( Tickit::Widget::Static->new( text => $position, align => $position, valign => "middle", ), expand => 1 ); } $tickit->set_root_widget( $hbox ); $tickit->run;
This container widget distributes its children in a horizontal row.
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.