in reply to Frame -tile option
In the meantime, you can hack around it
#!/usr/bin/perl ######################################## ### How to fake a background tile ### ### using the place geometry manager ### ######################################## use warnings; use Tk; use strict; my $mw=tkinit; $mw->geometry('500x430'); #my $file = './zen16.gif'; my $file=Tk->findINC('demos/images/earthris.gif'); my $image = $mw->Photo(-file=>$file); my $w = $image->width; my $h = $image->height; for (my $i=0; $i<$mw->screenwidth; $i+=$w) { for (my $j=0; $j<$mw->screenheight; $j+=$h){ $mw->Label(-image=>$image)->place(-x=>$i, -y=>$j); } } $mw->Button(-text=>"Pack your")->pack; $mw->Button(-text=>"widgets")->pack; $mw->Button(-text=>"like normal !")->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Frame -tile option
by Anonymous Monk on Nov 19, 2008 at 17:16 UTC |