[maemo-developers] Launching web browser from python

From: Johan Euphrosine proppy at aminche.com
Date: Wed Oct 10 13:25:31 EEST 2007
David HAUTBOIS <david.hautbois at free.fr> writes:

> Hi
> 
> I'm developping a python application.
> What is the best way to launch the web browser with a specified URL ?
> Actually, I'm using the command line :
> browser --url="www.mameo.org"
> 
> This works only if there is not another browser window opened.
> 
> Can we launch the browser with dbus ?
> 
> I want to open a local html file that contains images on the web. (on 
> don't want to show it)
> So, the browser asks for enable internet connection.
> 
> Can the browser be full off-line ?
> 
> Thanks.
> 
> David.

IIRC, since Python 2.4, there is a dedicated webbrowser module:
http://docs.python.org/lib/module-webbrowser.html

I don't know if this is available from maemo python port.

Hope that helps.
-- 
bou ^

More information about the maemo-developers mailing list