469,949 Members | 2,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

how to startup the default web browser to open a url?

I want to startup the default web browser(ie...) to open a url, "execl"
can open a process, but when the process exit, the other process will
exit too, has any why to deal this problem?
Jul 19 '05 #1
2 1484
flyaflya wrote:
I want to startup the default web browser(ie...) to open a url, "execl"
can open a process, but when the process exit, the other process will
exit too, has any why to deal this problem?


You want the 'webbrowser' module.

http://docs.python.org/lib/module-webbrowser.html

Will McGugan
--
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in
"jvyy*jvyyzpthtna^pbz")
Jul 19 '05 #2


flyaflya wrote:
I want to startup the default web browser(ie...) to open a url, "execl"
can open a process, but when the process exit, the other process will
exit too, has any why to deal this problem?


You can do this with the win32aip module found in win32all
Home page
http://starship.python.net/crew/mham...Downloads.html
files
http://sourceforge.net/project/showf...group_id=78018
example:
.....import win32api
.....a = win32api.ShellExecute(0,None,"www.ishpeck.net",Non e,None,1)

Hope that is of help

Erin

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Harry Smith | last post: by
2 posts views Thread by shumaker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.