Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python': 0.09; 'cc:addr :python-list': 0.10; 'dec': 0.15; 'received:74.125.82.46': 0.16; 'subject:URL': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'module': 0.19; 'email addr:gmail.com>': 0.20; 'equivalent': 0.20; 'otherwise,': 0.20; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'possible,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; 'window': 0.30; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'received:74.125.82': 0.33; 'docs': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'open': 0.35; 'pm,': 0.35; 'but': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'subject:: ': 0.38; 'url:docs': 0.38; 'page': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'skip:w 30': 0.61; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nVzDJkiYikfVtgADiBJjlF2bwL4hiq21KWYACY2Zw+A=; b=irQaTeMcfaqboUDtX9L8OPro1PRTNfr//glL01asjrhytIJn6XTQBAyACW/gNMxdtZ CCxPjMhzuhrv+VtB5SwQARiizgRTB7BfGX97GMQe/ou6maw+DLvAXW6egycEVBzVlNxL UEfgMvq6lMlfOhthOTaxB1LoM1vImxmP5+ARF8pFNs2gvI8pecGZU/+6+xYuF1tZUo77 QbLFerox6zhG4QPdVMv/Mi+yYAP7HtUY4uvce72eL4nTwQPCMkx4cIpzRKdAA1Zaiz18 lMkhIhiA9TE13IxqafG9g1dzss+xePLg6TYiexqllQJwv+7OJU4vakdQsV5l1B1HmWgx FH5A== MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 10 Dec 2012 17:39:14 -0500 Subject: Re: open URL in the current tab From: Joel Goldstick To: Jabba Laci Content-Type: multipart/alternative; boundary=f46d043c81e625560704d0873c06 Cc: Python mailing list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 86 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355179162 news.xs4all.nl 6876 [2001:888:2000:d::a6]:35209 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34575 --f46d043c81e625560704d0873c06 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Dec 10, 2012 at 5:27 PM, Jabba Laci 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 (=E2=80=9Ctab=E2=80=9D) of the default browser, if= possible, otherwise equivalent to open_new() . > Thanks, > > Laszlo > -- > http://mail.python.org/mailman/listinfo/python-list > --=20 Joel Goldstick --f46d043c81e625560704d0873c06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mon, D= ec 10, 2012 at 5:27 PM, Jabba Laci <jabba.laci@gmail.com>= 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 de= fault browser, if possible, otherwise, open url in the only browser window.

webbrowser.open_new_tab(= url)

Open url in a new page (=E2=80= =9Ctab=E2=80=9D) of the default browser, if possible, otherwise equivalent to open_new().




=C2=A0
Thanks,

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



--
Joel Gold= stick

--f46d043c81e625560704d0873c06--