in reply to Memory issue while experimenting with Tk::Thumbnail
It also has a command to identify the thumbnail which you could use to open the photo in another toplevel window when you click on a thumb.
#!/usr/bin/perl -w use Tk; use Tk::Thumbnail; use strict; #adapted from Mastering Perl/Tk my $mw = MainWindow->new; my $tn = $mw->Thumbnail( -images => [<*.jpg>], -command => sub { my $i = $_[0]->cget(-image); print "args=@_, image=$i\n"; }, @ARGV); $tn->pack; MainLoop;
|
|---|