in reply to Re^3: pp macOS external file
in thread pp macOS external file
I have solved it in this way, even if I am not very happy to use the $0 variable
use strict; use warnings; use FindBin; $0 = "stealth"; use Tk; use Tk::PNG; my $png = "$FindBin::Bin/myicon.png"; my $mw = Tk::MainWindow->new(); my $icon = $mw->Photo(-file => $png); my $btn = $mw->Button( -image => $icon, ); $btn->pack(); $mw->MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: pp macOS external file
by marto (Cardinal) on Apr 20, 2018 at 14:26 UTC | |
by IB2017 (Pilgrim) on Apr 20, 2018 at 14:58 UTC | |
by bliako (Abbot) on Apr 20, 2018 at 19:23 UTC | |
by Anonymous Monk on Apr 20, 2018 at 21:06 UTC |