home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netrunner 2004 October
/
NETRUNNER0410.ISO
/
regular
/
ActivePerl-5.8.4.810-MSWin32-x86.msi
/
_38767768bfeb95ac5c0cb78f5b5f5e27
< prev
next >
Wrap
Text File
|
2004-06-01
|
720b
|
29 lines
# image1.pl
use vars qw/$TOP/;
sub image1 {
# This demonstration script displays two image widgets.
my($demo) = @_;
$TOP = $MW->WidgetDemo(
-name => $demo,
-text => 'This demonstration displays two images, each in a separate label widget.',
-title => 'Image Demonstration #1',
-iconname => 'image1',
);
my(@pl) = qw/-side top -padx .5m -pady .5m/;
$TOP->Photo('image1a', -file => Tk->findINC('demos/images/earth.gif'));
$TOP->Label(-image => 'image1a')->pack(@pl);
$TOP->Photo('image1b', -file => Tk->findINC('demos/images/earthris.gif'));
$TOP->Label(-image => 'image1b')->pack(@pl);
} # end image1
1;