On 5/6/07, Somu <[EMAIL PROTECTED]> wrote:
All i want to know that i have a file c:/downloads/pics/swati.jpeg and
i have my script at d:/scripts i want to embed the picture in the Tk
button or label.. I am unable to understand the correct syntax from
previous answers.. Please help..

So long as the file continues to exist at c:/downloads/pics/swati.jpeg
you can say

my $img = $mw->Photo(
   -file => 'c:/downloads/pics/swati.jpeg'
);
my $button = $mw->Button(
   -image => $img
)->pack;

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to