| Server IP : 170.10.161.225 / Your IP : 216.73.216.78 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /lib64/perl5/vendor_perl/Prima/examples/ |
Upload File : |
=pod
=head1 NAME
examples/extlist.pl - Prima check-list widget
=head1 FEATURES
Demonstrates basic usage of a Prima toolkit and
its standard CheckList class.
=cut
use strict;
use warnings;
use Prima;
use Prima::ExtLists;
use Prima::Application;
my $w = Prima::MainWindow-> create(
size => [ 200, 200],
designScale => [7,16],
);
my $v = '';
vec($v, 0, 8) = 0x77;
$w-> insert( 'Prima::CheckList' =>
pack => { fill => 'both', expand => 1},
items => [qw( 'SpaceBar' toggles selection 'Enter' toggles checkbox )],
multiColumn => 1,
vertical => 0,
multiSelect => 1,
vector => $v,
extendedSelect => 0,
);
run Prima;