Namespaces
Variants
Actions

Archived:How to open browser using PySymbian

Jump to: navigation, search
Archived.png
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
Article Metadata

Article
Created: cyke64 (19 Mar 2007)
Last edited: hamishwillee (08 May 2013)

1st and 2nd Edition

You can do it by starting browser application given url as a parameter.

import e32
apprun = 'z:\\system\\programs\\apprun.exe'
browser = 'z:\\System\\Apps\\Browser\\Browser.app'
url = 'http://www.google.com'
 
e32.start_exe(apprun, browser + ' "%s"' %url, 1)

You can also use Nick Burch's webbrowser module that allows you to use opera and any other browsers.

3rd Edition

def display_in_browser(url):
"""
Launches the browser with the given url
"""

import e32
import sysinfo
internal_url = '4 '+ url + ' 1'
b = 'BrowserNG.exe'
e32.start_exe(b, ' "%s"' %internal_url, 1)
This page was last modified on 8 May 2013, at 08:59.
171 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved