athanasia has asked for the wisdom of the Perl Monks concerning the following question:
I need to do the same for a MAC OS X (10.5.6) system. The only fairly relevant information I could find implies a Linux system and suggests to do the following:$mw = new MainWindow (-title => "My Perl/Tk app"); my $newlogo = $mw->setIcon(-file => $imagedir."logo.ico");
2. Try the following code snippet:convert logo.png logo.xpm
However, the upper-left-corner image still remains the default (actually, in MAC it is not the standard red-ish Tk image that used to appear in Windows systems, but the black and white X11 image). Any suggestions are very welcome!$mw = new MainWindow (-title => "My Perl/Tk app"); my $newlogo = $mw->Photo(-file => $imagedir."logo.xpm", -format => 'xp +m'); $mw->Icon(-image => $newlogo);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Change default image of Perl/Tk in MAC OS X
by cmv (Chaplain) on Apr 08, 2016 at 14:26 UTC | |
by beech (Parson) on Apr 08, 2016 at 19:42 UTC | |
by cmv (Chaplain) on Apr 11, 2016 at 13:48 UTC |