Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > launching Adobe Reader from wxHTMLwindow

Reply
Thread Tools

launching Adobe Reader from wxHTMLwindow

 
 
Greg
Guest
Posts: n/a
 
      05-26-2004
I have some html code that is displayed on a wxHTMLwindow in a Python
application. One of the ahref links is to a pdf document. When I
click the link, I get what appears to be some sort of header material
for a pdf document, but Adobe Reader doesn't start. Is there a
special call I will have to use in the HTML code instead of ahref to
get Reader to launch?
 
Reply With Quote
 
 
 
 
Andrei
Guest
Posts: n/a
 
      05-27-2004
Greg wrote on 26 May 2004 10:12:59 -0700:

> for a pdf document, but Adobe Reader doesn't start. Is there a
> special call I will have to use in the HTML code instead of ahref to
> get Reader to launch?


You chould subclass wxHtmlWindow and implement the OnLinkClicked methos:
def OnLinkClicked(self, linkinfo):
# do something with linkinfo.GetHref()

That "something" could be a system command to open the Href with the
default app for that file type.

--
Yours,

Andrei

=====
Real contact info (decode with rot13):
http://www.velocityreviews.com/forums/(E-Mail Removed). Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.
 
Reply With Quote
 
 
 
 
Greg
Guest
Posts: n/a
 
      06-01-2004
Thanks Andrei, I was hoping that I wouldn't have to do that, although
it seems easy enough. It appears to be not an issue now as we're
launching a tab using wxIEHtmlWin for the service documentation, and
Adobe Reader launches from there just by using the *.pdf link.

Andrei <(E-Mail Removed)> wrote in message news:<14xjk0zcffu0j.qz20rh1ujyie$(E-Mail Removed)>. ..
> Greg wrote on 26 May 2004 10:12:59 -0700:
>
> > for a pdf document, but Adobe Reader doesn't start. Is there a
> > special call I will have to use in the HTML code instead of ahref to
> > get Reader to launch?

>
> You chould subclass wxHtmlWindow and implement the OnLinkClicked methos:
> def OnLinkClicked(self, linkinfo):
> # do something with linkinfo.GetHref()
>
> That "something" could be a system command to open the Href with the
> default app for that file type.
>
> --
> Yours,
>
> Andrei
>
> =====
> Real contact info (decode with rot13):
> (E-Mail Removed). Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
> gur yvfg, fb gurer'f ab arrq gb PP.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to load multiple wxhtmlwindow at the same time? Abe Python 0 11-17-2009 06:02 PM
launching adobe reader with arguments from os.system call Greg Miller Python 4 09-08-2005 04:53 PM
ANN:A wxHtmlWindow forms implementation. Tom B. Python 5 09-13-2004 07:42 PM
event on a panel inside of a wxHtmlwindow Luiz Siqueira Neto Python 0 07-11-2003 01:40 PM



Advertisments