File: demo-hsplit.pl

package info (click to toggle)
libtickit-widgets-perl 0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 568 kB
  • sloc: perl: 5,636; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use v5.20;
use warnings;

use Tickit;
use Tickit::Widgets qw( HSplit Static );

my $hsplit = Tickit::Widget::HSplit->new
   ->set_top_child( Tickit::Widget::Static->new(
      text => "Top child",
      align => "centre", valign => "middle",
   ) )
   ->set_bottom_child( Tickit::Widget::Static->new(
      text => "Bottom child",
      align => "centre", valign => "middle",
   ) );

Tickit->new( root => $hsplit )->run;