Jun 13, 2008, 6:12 AM
Post #1 of 1
displaying image in perl gui
I have made a GUI for a small perl script I wrote that reads in user inputs and then creates an XML document based on the user inputs. It all works fine, I just want to display a logo in the top left of my GUI. I've put Labels and Entry widgets in without a problem, i just can't figure out how to show an image above them all! The image i want to show is in either .jpg or .gif format and is saved in the same directory as the file.pl that outputs the XML.
I've tried doing it like I did the entry widget:
But it does not work.
my $image = $frm_name->Photo(-file => "logo.gif");
Can anyone help?
Thanks very much!