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


Groups > comp.lang.python > #28521

Re: how can i register the non-default browser with the webbrowser module?

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: how can i register the non-default browser with the webbrowser module?
Date 2012-09-05 17:33 +0100
References <CAEMsKDsa6WDVzTPh3XNueNJ0dZza+gSthV3KcZ5CiLEiYRgmKw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.254.1346862779.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 05/09/2012 15:32, Levi Nie wrote:
> how can i register the non-default browser with the webbrowser module?
>
> the case:
> i want open a site such as "google.com" in ie8 with the python.But my
> default is chrome.
> so i want to register a ie8 controller with the webbrowser.register(*name*,
> *constructor*[, *instance*]).
> so what does the parameter "constructor" "instance" mean?
> how can i do it?
>
>
>

Have you read the documentation at all?  It clearly states "This entry 
point is only useful if you plan to either set the BROWSER variable or 
call get() with a nonempty argument matching the name of a handler you 
declare."  Is this what you plan to do in your code?

-- 
Cheers.

Mark Lawrence.

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


Thread

Re: how can i register the non-default browser with the webbrowser module? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-05 17:33 +0100

csiph-web