[maemo-developers] Launching web browser from python
From: Luciano Miguel Wolf luciano.wolf at indt.org.brDate: Wed Oct 10 17:27:29 EEST 2007
- Previous message: Launching web browser from python
- Next message: Fwd: Launching web browser from python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi David,
PyMaemo uses context, to have information about application running.
You can use webbrowser module, as Johan has pointed, but remember to it
this way:
context = osso.Context("appname", "version", False), where version is
your app version as "0.0.1" format, then call webbrowser this way:
webbrowser.open(url, context=context)
And about your question of full off-line: the browser will try to go
online even if you use a localhost(127.0.0.1) connection.
Regards,
Luciano
ext Johan Euphrosine wrote:
> 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"
>>
<SNIP>
>>
>> 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.
- Previous message: Launching web browser from python
- Next message: Fwd: Launching web browser from python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
