[Israel.pm] Re: Opening a browser from perl Tk on Windows
Yehuda Berlinger
jon at actcom.co.il
Fri May 28 03:28:36 PDT 2004
> 1. I would like to open the default browser from a Perl Tk window
> under Windows, without freezing the Tk program.
>
> Perl 5.6 used to have a Win32::Shell::Execute, but that seems to have
> disappeared under 5.8 .
Actually, I just solved the first part of the problem with a little
more sleuthing around:
use Win32::FileOp qw(ShellExecute);
ShellExecute('http://...');
seems to work.
> 2. Secondly, and less importantly, is there a way to do this using a
> "Link" (underlined blue text) in the Tk window itself, or does this
> have to happen through a button. I.e. can you add a command to
> clicking on text in Tk?
Someone sent me some advice for this which I am now exploring.
Yehuda
More information about the Perl
mailing list