These are actually methods.

This commit is contained in:
Georg Brandl 2007-03-29 07:41:32 +00:00
parent 04a51ec8a3
commit 9499b7117a
1 changed files with 6 additions and 6 deletions

View File

@ -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}