AppWindow/Ext/StatusBar/STextItem.pm untested

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