merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
To set the picture I use$text_replacement_res = $wg_name->configure(-text => $new_text);
where $wg_name is the name of label widget $new_text is the new text for the label $mw_Main is the top level widget $image_loc is the directory in which the image is stored $new_image is the file name of the image This allows me to: Swap text for text Image for image Text for image However it fails when I try and swap an image for text. What do I have to do to achieve this?$image_name_full = $image_loc . $new_image; $image_use = $mw_Main->Photo(-file => $image_name_full); $wg_name->configure(-image => $image_use);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Swapping text and pictures in Labels
by zentara (Cardinal) on Oct 15, 2007 at 12:37 UTC | |
by merrymonk (Hermit) on Oct 15, 2007 at 13:44 UTC |