AppWindow/Ext/StatusBar/SProgressItem.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
Populate
2.0
Update
2.0
BEGIN
2.0
CRAP 2.0
1 package Tk::AppWindow::Ext::StatusBar::SProgressItem;
2  
3 use strict;
4 use warnings;
5 use Tk;
6 use base qw(Tk::AppWindow::Ext::StatusBar::SBaseItem);
7 Construct Tk::Widget 'SProgressItem';
8 require Tk::ProgressBar;
9  
10 sub Populate {
11 my ($self,$args) = @_;
12  
13 $self->SUPER::Populate($args);
14  
15 my $t = $self->ProgressBar->pack($self->ItemPack);
16 $self->Advertise('value', $t);
17 $self->ConfigSpecs(
18 -borderwidth => ['SELF'],
19 -relief => ['SELF'],
20 DEFAULT => [$t],
21 );
22 $self->Delegates(
23 'DEFAULT' => $t,
24 );
25 }
26  
27 sub Update {
28 my $self = shift;
29 $self->configure(-value => $self->Callback(-updatecommand => $self));
30 }
31  
32 1;