open new window problem of webbrowser under win32
Wolfgang Strobl
ws at mystrobl.de
Fri Jan 4 15:47:18 EST 2002
On 4 Jan 2002 07:49:03 -0800, newgene at bigfoot.com (newgene) wrote :
>when I run the following code(activepython 2.1,windows 2000):
>
> import webbrowser
>
> webbrowser.open("http://my.yahoo.com")
> webbrowser.open("http://www.msn.com",new=1)
>
>It does not open two browser windows,but open one single window with
>the latter URL. Whatever I change the value of "new" or use
>"open_new", it's still the same thing.
Well, you could try
from win32com.client import Dispatch
def start(url):
w=Dispatch("InternetExplorer.Application")
w.Navigate2(url)
w.visible=1
start("http://www.python.org")
start("http://www.zope.com")
>I don't know how about under UNIX. Maybe it's a problem under win32?
Perhaps.
--
Wir danken für die Beachtung aller Sicherheitsbestimmungen
More information about the Python-list
mailing list