mirror of https://github.com/python/cpython
These are actually methods.
This commit is contained in:
parent
04a51ec8a3
commit
9499b7117a
|
@ -154,20 +154,20 @@ webbrowser.open_new(url)
|
||||||
Browser controllers provide two methods which parallel two of the
|
Browser controllers provide two methods which parallel two of the
|
||||||
module-level convenience functions:
|
module-level convenience functions:
|
||||||
|
|
||||||
\begin{funcdesc}{open}{url\optional{, new\optional{, autoraise=1}}}
|
\begin{methoddesc}{open}{url\optional{, new\optional{, autoraise=1}}}
|
||||||
Display \var{url} using the browser handled by this controller.
|
Display \var{url} using the browser handled by this controller.
|
||||||
If \var{new} is 1, a new browser window is opened if possible.
|
If \var{new} is 1, a new browser window is opened if possible.
|
||||||
If \var{new} is 2, a new browser page ("tab") is opened if possible.
|
If \var{new} is 2, a new browser page ("tab") is opened if possible.
|
||||||
\end{funcdesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{funcdesc}{open_new}{url}
|
\begin{methoddesc}{open_new}{url}
|
||||||
Open \var{url} in a new window of the browser handled by this
|
Open \var{url} in a new window of the browser handled by this
|
||||||
controller, if possible, otherwise, open \var{url} in the only
|
controller, if possible, otherwise, open \var{url} in the only
|
||||||
browser window. Alias \function{open_new}.
|
browser window. Alias \function{open_new}.
|
||||||
\end{funcdesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{funcdesc}{open_new_tab}{url}
|
\begin{methoddesc}{open_new_tab}{url}
|
||||||
Open \var{url} in a new page ("tab") of the browser handled by this
|
Open \var{url} in a new page ("tab") of the browser handled by this
|
||||||
controller, if possible, otherwise equivalent to \function{open_new}.
|
controller, if possible, otherwise equivalent to \function{open_new}.
|
||||||
\versionadded{2.5}
|
\versionadded{2.5}
|
||||||
\end{funcdesc}
|
\end{methoddesc}
|
||||||
|
|
Loading…
Reference in New Issue