1
#!/usr/local/bin/perl -w
5
my $top = MainWindow->new();
6
$top->title("Mail : Trial");
8
my $i64 = $top->Photo(-width => 64, -height => 64, -gamma => 2, '-file' => Tk->findINC("Xcamel.gif"));
9
my $i32 = $top->Photo(-width => 32, -height => 32);
10
$i32->copy($i64,-subsample => 2,2);
11
my $i16 = $top->Photo(-width => 16, -height => 16);
12
$i16->copy($i64,-subsample => 4,4);
17
$top->Button(-bitmap => 'Tk', -command => sub {
19
$top->iconbitmap('Tk');
20
$top->deiconify})->pack;
22
foreach my $img ($i64,$i32,$i16)
24
$top->Button(-image => $img, -command => sub {
26
$top->iconimage($img);
27
$top->deiconify})->pack;