7 Einträge, 1 Seite |
1
2
3
4
5
my $button1 = $main->Button( -height => "4",
-width => "4",
-image => '1tel.gif',
-command => sub {exit 0} );
$button1->pack(-anchor => "ne");
-image => $main->Photo(-file => '1tel.gif'),
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
my $frame1 = $main->Frame( -relief => "groove",
-borderwidth => 5);
$frame1->pack( -fill => "both",
-side => "top");
my $canvas1 = $frame1 ->Canvas(-width => '253',
-height => '477',
);
$canvas1->pack;
my $file = 'image.gif';
my $img =
$canvas1->Photo( 'imggif',
-file => $file );
$canvas1->create( 'image',0,0,
'-anchor' => 'nw',
'-image' => $img,
);
....
...
sub tel{
my $canvas2 = $frame1 ->Canvas(-width => '253',
-height => '477',
);
$canvas2->pack;
my $file = 'image_tel.gif';
my $img =
$canvas2->Photo( 'imggif',
-file => $file );
$canvas2->create( 'image',0,0,
'-anchor' => 'nw',
'-image' => $img,
);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sub mp3{
$canvas1 ->packForget();
my $canvas1 = $frame1 ->Canvas(-width => '253',
-height => '477',
);
$canvas1->pack;
my $file = 'image_mp3.gif';
my $img =
$canvas1->Photo( 'imggif',
-file => $file );
$canvas1->create( 'image',0,0,
'-anchor' => 'nw',
'-image' => $img,
);
}
1
2
3
4
5
6
sub mp3{
$canvas1 ->packForget();
my $canvas1 = $frame1 ->Canvas(-width => '253',
-height => '477',
);
$canvas1->pack;
7 Einträge, 1 Seite |