vr786 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use Tk; use strict; use warnings; use Tk::JPEG; use Tk::PNG; my $mw = MainWindow->new; $mw->geometry("400x400"); if ( -e "2bgimg.png") { #if bgimage graphic exists , use it $mw->update(); my $canvas1 = $mw->Canvas->pack(-expand=>1,-fill=>'both'); my $bg_img = $mw -> Photo(-file=>'2bgimg.png'); $canvas1->createImage(0,0, -image => $bg_img, -anchor => 'nw', -tags => ['img'], ); } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Background Image is moving in perl tk
by zentara (Cardinal) on Dec 17, 2010 at 12:49 UTC | |
|
Re: Background Image is moving in perl tk
by vr786 (Sexton) on Dec 18, 2010 at 07:27 UTC |