newbie webbrowser module question

Tim Freeman tim at mercury.nasoftware
Tue Feb 4 10:29:41 EST 2003


Thomas Guettler <zopestoller at thomas-guettler.de> writes:

> Tim Freeman schrieb:
> > Hi,
> > I'm having trouble with the command webbrowser.open(self.url, new=1,
> > autoraise=0), where url is defined as a local html file.
> > When this is executed, I get 2 mozilla's comming up, the correct url
> > and my 'home' page.
> > If there is a mozilla window open already, it works OK.
> > When I set new=0, I get 1 mozilla window with my 'home' page.
> 
> Just a guess:
> What does url look like? Does it start with file:///?
> 
>   thomas
> 
Hi Thomas,

Yes it does start like that. 
Even if I use:

webbrowser.open('http://python.org', new=1, autoraise=1)

I get the behaviour mentioned.
I'm on Red Hat with Python 2.2. by the way.

Tim.


-- 
Tim Freeman			Tel: (+44) 151 709 4738
				Fax: (+44) 151 709 5645
InfoSAR Ltd			tim at infosar.co.uk
62 Roscoe Street		http://www.infosar.co.uk
Liverpool L1 9DW
UK




More information about the Python-list mailing list