I could have attached the $foto object to any widget that will take a -image option (i.e. Label) or a canvas (with createImage()).use Tk; use Tk::Photo; my $mw=new MainWindow; my $foto=$mw->Photo(-file => 'picture.gif'); $mw->Button(-image => $foto)->pack(); $mw->MainLoop;
In reply to Re: Tk, images, where do I begin.
by clintp
in thread Tk, images, where do I begin.
by PyroX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |