Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
a simple question :
How is it possible to get the filename of a image used in creating a Tk::Photo widget..

Should be so simple (and probably is)..but its been driving me nuts..

All help appreciated....

Thanks,
Tom

Replies are listed 'Best First'.
Re: Tk Photo Filename extract
by PodMaster (Abbot) on Dec 13, 2003 at 23:16 UTC
    1 - don't throw away the filename :)
    2 - The option by which you pass the filename is '-file', so $photo->cget('-file');

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.