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
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
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
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
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,