[Tutor] Webbrowser

Andrei project5 at redrival.net
Sun Sep 7 22:52:08 EDT 2003


Hello,

I'm having some problems with the webbrowser module under KDE (Mandrake 
9.0/9.1). The problem is that it won't open any browser.

The code:

     def OnLinkClicked(self, linkinfo):
         webbrowser.open(linkinfo.GetHref(), 1)

The error:

   File "/usr/lib/python2.2/webbrowser.py", line 38, in get
     raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser

I think the code works under Gnome (it's some time ago that I tested it) 
and it also works under Windows.

Any idea how I could solve this?
On a sidenote: is there any support for browsers which have tabs (as in: 
open in a new tab)?

Yours,

Andrei

=====
Mail address in header catches spam. Real contact info (decode with rot13):
cebwrpg5 at bcrenznvy.pbz. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V 
ernq gur yvfg, fb gurer'f ab arrq gb PP.





More information about the Tutor mailing list