Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34575

Re: open URL in the current tab

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 <joel.goldstick@gmail.com>
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&gt;': 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 <CAOuJsM=ch3T=L3+7rQ=sg5t_LmA5v_nXJLYYTw7ySD30Vmx+qA@mail.gmail.com>
References <CAOuJsM=ch3T=L3+7rQ=sg5t_LmA5v_nXJLYYTw7ySD30Vmx+qA@mail.gmail.com>
Date Mon, 10 Dec 2012 17:39:14 -0500
Subject Re: open URL in the current tab
From Joel Goldstick <joel.goldstick@gmail.com>
To Jabba Laci <jabba.laci@gmail.com>
Content-Type multipart/alternative; boundary=f46d043c81e625560704d0873c06
Cc Python mailing list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.688.1355179162.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Dec 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 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, if possible,
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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: open URL in the current tab Joel Goldstick <joel.goldstick@gmail.com> - 2012-12-10 17:39 -0500

csiph-web