Re: [Tutor] Any easy way to invoke the default browser on a specified URL?

2005-05-10 Thread Roel Schroeven
Kent Johnson wrote: > Terry Carroll wrote: > >>Is there any way, from within Python, to cause the default browser >>(Firefox, in my case) to be invoked with a specific URL? >> >>I'd like to do something like (totally made-up name and syntax): >> >>OpenBrowser("http://www.google.com/";) >> >>and

Re: [Tutor] Any easy way to invoke the default browser on a specified URL?

2005-05-09 Thread Terry Carroll
On Mon, 9 May 2005, Kent Johnson wrote: > >>> import webbrowser > >>> webbrowser.open("http://www.google.com/";) Beautiful; just what I needed. Thanks. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Any easy way to invoke the default browser on a specified URL?

2005-05-09 Thread jfouhy
Quoting Terry Carroll <[EMAIL PROTECTED]>: > Is there any way, from within Python, to cause the default browser > (Firefox, in my case) to be invoked with a specific URL? If you're on Win32, try: >>> import win32api >>> win32api.ShellExecute(0, 'open', 'http://www.google.com/', None, '', 1) Pa

Re: [Tutor] Any easy way to invoke the default browser on a specified URL?

2005-05-09 Thread Kent Johnson
Terry Carroll wrote: > Is there any way, from within Python, to cause the default browser > (Firefox, in my case) to be invoked with a specific URL? > > I'd like to do something like (totally made-up name and syntax): > > OpenBrowser("http://www.google.com/";) > > and have a new browser window

[Tutor] Any easy way to invoke the default browser on a specified URL?

2005-05-09 Thread Terry Carroll
Is there any way, from within Python, to cause the default browser (Firefox, in my case) to be invoked with a specific URL? I'd like to do something like (totally made-up name and syntax): OpenBrowser("http://www.google.com/";) and have a new browser window opened up pointing to Google. (Okay,