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

Discussion in 'Python' started by Mark Lawrence, Sep 5, 2012.

  1. 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.
     
    Mark Lawrence, Sep 5, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. desktop
    Replies:
    2
    Views:
    464
    Victor Bazarov
    Jun 6, 2007
  2. ose

    Default type for "register" variable

    ose, Sep 1, 2007, in forum: C Programming
    Replies:
    3
    Views:
    330
    Gordon Burditt
    Sep 2, 2007
  3. Nemesis

    Register with a default Value

    Nemesis, Dec 18, 2008, in forum: VHDL
    Replies:
    16
    Views:
    5,307
    Ken Cecka
    Jan 9, 2009
  4. Bob from Chesham Bois

    Can using "register" make code non-reentrant?

    Bob from Chesham Bois, Jul 20, 2009, in forum: C++
    Replies:
    3
    Views:
    404
    Richard Herring
    Jul 20, 2009
  5. Peter Otten
    Replies:
    0
    Views:
    207
    Peter Otten
    Sep 5, 2012
Loading...

Share This Page