$ cat image.pl #!/usr/bin/perl -w use strict; use Tk; use Tk::Canvas; my $width = 250; my $height = 250; my $top = MainWindow->new(); my $photo = $top->Photo(-file => "me.bmp" ); my $can = $top->Canvas( -width => $width, -height=> $height )->pack(); $can->createImage(100, 100, -image => $photo ); MainLoop;
| Plankton: 1% Evil, 99% Hot Gas. |
In reply to Re: Images in Perl/Tk Dialog Box
by Plankton
in thread Images in Perl/Tk Dialog Box
by antioch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |