This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Open always create new tab or new browser
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, ilan91
Priority: normal Keywords:

Created on 2007-07-13 11:00 by ilan91, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg32488 - (view) Author: Ilan Peleg (ilan91) Date: 2007-07-13 11:00
Each call to webbrowser.open creates new tab with firefox and new windows with IE6.

There is no way to open subsequent files (local files) in the same tab or window.
msg55160 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-23 17:08
With Firefox, that's probably because you have set the default behavior
to "open a new tab", so there's nothing webbrowser.py can do about that.

In Windows, os.startfile() is used, which doesn't allow remote settings
like "new window" etc., so there's nothing webbrowser.py can do about
that, too.

Setting tentatively to "Won't fix".
msg55255 - (view) Author: Ilan Peleg (ilan91) Date: 2007-08-24 14:22
Hi there,
I Have only 2 lines in my programs which related to webbrowser.py.

1) import webbrowser
2) webbrowser.open(windowsPath) # Called many times.

In the following browsers [FastBrowser,Firefox,IE7,FrontPage] new tab 
is created after each call. In IE6 new window is created.

Most of the time that behavior (many tabs) is nice feature but in some 
scenarios it looks bad. I simply wish to have new tabs only when I ask 
it.

Thanks
Ilan.
msg55256 - (view) Author: Ilan Peleg (ilan91) Date: 2007-08-24 14:35
Just to make sure I'm clear.
I don't wish new tabs neither new windows.
I wish all calls to webbrowser.open(path) to go the same tab or to the 
same window when tabs are not supported or not requested.
Ilan.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45191
2007-10-24 19:20:06georg.brandlsetstatus: pending -> closed
2007-08-24 14:35:27ilan91setmessages: + msg55256
2007-08-24 14:22:18ilan91settype: behavior
messages: + msg55255
2007-08-23 17:08:55georg.brandlsetstatus: open -> pending
resolution: wont fix
messages: + msg55160
nosy: + georg.brandl
2007-07-13 11:00:32ilan91create