blob: b897f0df0e40355eb54b691ca8a35edab2c40fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/perl
use strict;
use warnings;
use Tickit;
use Tickit::Widget::ScrollBox;
use Tickit::Widget::GridBox;
use Tickit::Widget::Static;
my $scrollbox = Tickit::Widget::ScrollBox->new(
horizontal => "on_demand",
vertical => "on_demand",
child => Tickit::Widget::GridBox->new(
children => [
map { my $row = $_;
[ map { Tickit::Widget::Static->new( text => "Row $row Col $_" ) } 1 .. 10 ]
} 1 .. 10 ],
row_spacing => 1,
col_spacing => 2,
),
);
Tickit->new( root => $scrollbox )->run;
|