[Israel.pm] Re: Opening a browser from perl Tk on Windows
elem at compugen.co.il
Sun May 30 01:01:38 PDT 2004
im not shure what you need
but did you try the Text widget of tk its contain hyperlinks and enable command on that hyperlinks
From: Yehuda Berlinger [mailto:jon at actcom.co.il]
Sent: Friday, May 28, 2004 1:29 PM
To: perl-win32-users at listserv.ActiveState.com; perl at perl.org.il
Subject: [Israel.pm] Re: Opening a browser from perl Tk on Windows
> 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);
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.
Perl mailing list
Perl at perl.org.il
More information about the Perl