Add example

This commit is contained in:
Andrew M. Kuchling 2006-07-28 12:32:43 +00:00
parent 984b075978
commit 4036f43cac
1 changed files with 12 additions and 0 deletions

View File

@ -136,6 +136,18 @@ Library Modules} manual.
Only on MacOS X platform. Only on MacOS X platform.
\end{description} \end{description}
Here are some simple examples:
\begin{verbatim}
url = 'http://www.python.org'
# Open URL in a new tab, if a browser window is already open.
webbrowser.open_new_tab(url + '/doc')
# Open URL in new window, raising the window if possible.
webbrowser.open_new(url)
\end{verbatim}
\subsection{Browser Controller Objects \label{browser-controllers}} \subsection{Browser Controller Objects \label{browser-controllers}}