classification
Title: webbrowser: open new tab in unobtrusive way
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.2
process
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 2010-08-06 03:50 by r.david.murray. 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 :)
History
Date User Action Args
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