Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: open URL in the current tab

Reply
Thread Tools

Re: open URL in the current tab

 
 
Joel Goldstick
Guest
Posts: n/a
 
      12-10-2012
On Mon, Dec 10, 2012 at 5:27 PM, Jabba Laci <(E-Mail Removed)> wrote:

> Hi,
>
> With the webbrowser module you can open a URL in a new tab. But how
> could I tell Firefox from Python to open a URL in the _current_ tab?
>
>

The docs say this:
webbrowser.open_new(*url*)

Open *url* in a new window of the default browser, if possible, otherwise,
open *url* in the only browser window.
webbrowser.open_new_tab(*url*)

Open *url* in a new page (“tab”) of the default browser, ifpossible,
otherwise equivalent to
open_new()<http://docs.python.org/2/library/webbrowser.html#webbrowser.open_new>
..






> Thanks,
>
> Laszlo
> --
> http://mail.python.org/mailman/listinfo/python-list
>




--
Joel Goldstick

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: open URL in the current tab Jabba Laci Python 0 12-11-2012 12:05 AM
Re: open URL in the current tab Chris Angelico Python 0 12-10-2012 11:14 PM
Re: open URL in the current tab Jabba Laci Python 0 12-10-2012 10:51 PM
Re: open URL in the current tab Boris FELD Python 0 12-10-2012 10:43 PM
open URL in the current tab Jabba Laci Python 0 12-10-2012 10:27 PM



Advertisments