App-CPAN2Pkg
view release on metacpan or search on metacpan
lib/App/CPAN2Pkg/UI/Tk.pm view on Meta::CPAN
$legend->Label( -text => $lab1[$i] )->grid( -row=>$i+1, -column=>1, -sticky => 'w' );
$legend->Label( -text => $lab2[$i] )->grid( -row=>$i+1, -column=>3, -sticky => 'w' );
}
}
# -- private subs
#
# my $img = _image( $path );
#
# Return a tk image loaded from C<$path>. If the photo has already been
# loaded, return a handle on it.
#
sub _image {
my $path = shift;
my $img = $poe_main_window->Photo($path);
return $img if $img->width;
return $poe_main_window->Photo($path, -file=>$path);
}
no Moose;
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=head1 NAME
App::CPAN2Pkg::UI::Tk - main cpan2pkg window
=head1 VERSION
version 3.004
=head1 DESCRIPTION
This class implements the whole L<Tk> graphical interface. It is a POE
session driving events and updating the display as workers change
status.
=head1 EVENTS
=head2 log_out
=head2 log_err
=head2 log_comment
=head2 log_result
=head2 log_step
log_XXX( $module, $line )
Log a C<$line> of output / stderr / comment / result / step in
C<$module> tab.
=head2 module_state
module_state( $module )
Sent from the controller when a module has changed status (either
local or upstream).
=head2 new_module
new_module( $module )
Received from the controller when a new module needs to be investigated.
Said module will be followed by a L<App::CPAN2Pkg::Worker> session.
=for Pod::Coverage START
=head1 AUTHOR
Jerome Quelin <jquelin@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 1.927 second using v1.01-cache-2.11-cpan-5a3173703d6 )