open default web browser using python

Mickel Grönroos mickel at csc.fi
Wed Mar 10 04:41:01 EST 2004


On Wed, 10 Mar 2004, Gregor Leban wrote:

> When clicking on one of the menu
> items, we would like to open the default web browser for that platform with
> a specific html page. Is there any python function that can do that?

Look at the webbrowser module:

import webbrowser
webbrowser.open("http://www.google.com/")

Cheers,

/Mickel G.

--
Mickel Grönroos, application specialist, linguistics, Research support, CSC
PL 405 (Tekniikantie 15 a D), 02101 Espoo, Finland, phone +358-9-4572237
CSC is the Finnish IT center for science, www.csc.fi




More information about the Python-list mailing list