Reputation: 1151
I’m using the webbrowser Python module to open images in Internet Explorer. Specifically, I’m using the webbrowser.open('C:...', new=0)
command.
However, even though I say new=0
my URL is always opened in a new browser window.
What can I do so my link is opened in an already-open browser window?
Thank you for your help.
Upvotes: 4
Views: 2476
Reputation: 15990
Try open_new_tab.
webbrowser.open_new_tab(url)
Open url in a new page (“tab”) of the default browser, if possible, otherwise equivalent to open_new().
From the docs: http://docs.python.org/library/webbrowser.html
Upvotes: 1