zentara has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use Tk; use Tk::Photo; use Tk::JPEG; # substitute any jpg file here, and it should be # scaled down by a factor of 4 and put in the # button my $file = "zen16.jpg"; my $w = new MainWindow; my $image1 = $w->Photo( -file => "$file", -format => 'jpeg' ); my $image = $w->Photo(); $image->copy( $image1, -subsample => 4 ); $b = $w->Button( -image => $image )->pack(); $b->configure( -image => $image ); MainLoop;
2006-07-05 Retitled by broquaint, as per Monastery guidelines
Original title: 'Why dosn't strict complain here'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't strict complain here
by davorg (Chancellor) on Jul 05, 2006 at 12:45 UTC | |
|
Re: Why doesn't strict complain here?
by derby (Abbot) on Jul 05, 2006 at 12:47 UTC | |
|
Re: Why doesn't strict complain here?
by zentara (Cardinal) on Jul 05, 2006 at 12:51 UTC | |
by rodion (Chaplain) on Jul 05, 2006 at 17:52 UTC | |
by zentara (Cardinal) on Jul 06, 2006 at 13:27 UTC |