App-PLab
view release on metacpan or search on metacpan
lib/App/PLab/ImageApp.pm view on Meta::CPAN
sub sb_text
{
my ( $w, $text, $color) = @_;
my $self = $w-> StatusBar;
$self-> color( defined $color ? cl::LightRed : cl::Fore);
$self-> set(
text => $text,
raise => 1,
);
$self-> update_view;
$self-> { timer} = $self-> insert( Timer =>
onTick => sub {
$_[0]-> stop;
$_[0]-> owner-> set(
text => '',
raise => 0,
);
},
) unless $self-> { timer};
$self-> { timer}-> stop;
$self-> { timer}-> timeout( $w-> {ini}-> {statusDelay} * 1000);
$self-> { timer}-> start;
}
# SB_END
sub profile_default
{
my $def = $_[ 0]-> SUPER::profile_default;
my %prf = (
name => 'MainWindow',
size => [ 531, 594],
( run in 1.301 second using v1.01-cache-2.11-cpan-49f99fa48dc )