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.

Title: webbrowser: open new tab in unobtrusive way
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.2
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: gruszczy, r.david.murray
Priority: normal Keywords:

Created on 2010-08-05 19:55 by gruszczy, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg113034 - (view) Author: Filip Gruszczyński (gruszczy) Date: 2010-08-05 19:55
webbrowser module doesn't allow to open url in an unobtrusive way. Right now if browser is minimized it is brought to the top. Furthermore if you browser is already in the top, new tab is opened and user is moved to this top. It would be useful, if tab could be opened in background (just like when you open a link in chrome in new tab, new tab is created, but you stay in current window).
msg113068 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-08-06 03:50
There is the autoraise keyword, which if set to False might do what you want if you are lucky.  It only works on linux (see issue 8232) and only with some browsers, and even then the window manager may ignore the hint.

If you can figure out a way to make it work better, please feel free to reopen this issue and post a patch.  It would be great to see that module get some improvements.

I'm closing this "works for me" because the feature exists, but obviously that's a bit of a half-truth where this module is concerned :)
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53734
2010-08-06 03:50:47r.david.murraysetstatus: open -> closed

versions: + Python 3.2, - Python 2.6
nosy: + r.david.murray

messages: + msg113068
resolution: works for me
stage: resolved
2010-08-05 19:55:11gruszczycreate