Changeset 391 for python/trunk/Doc/library/webbrowser.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/webbrowser.rst
r2 r391 1 2 1 :mod:`webbrowser` --- Convenient Web-browser controller 3 2 ======================================================= … … 8 7 .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> 9 8 9 **Source code:** :source:`Lib/webbrowser.py` 10 11 -------------- 10 12 11 13 The :mod:`webbrowser` module provides a high-level interface to allow displaying … … 33 35 The script :program:`webbrowser` can be used as a command-line interface for the 34 36 module. It accepts an URL as the argument. It accepts the following optional 35 parameters: :option:`-n` opens the URL in a new browser window, if possible; 36 :option:`-t` opens the URL in a new browser page ("tab"). The options are, 37 naturally, mutually exclusive. 37 parameters: ``-n`` opens the URL in a new browser window, if possible; 38 ``-t`` opens the URL in a new browser page ("tab"). The options are, 39 naturally, mutually exclusive. Usage example:: 40 41 python -m webbrowser -t "http://www.python.org" 38 42 39 43 The following exception is defined: … … 47 51 48 52 49 .. function:: open(url [, new=0[, autoraise=True]])53 .. function:: open(url, new=0, autoraise=True) 50 54 51 55 Display *url* using the default browser. If *new* is 0, the *url* is opened … … 69 73 *url* in the only browser window. 70 74 71 72 75 .. function:: open_new_tab(url) 73 76 … … 138 141 | ``'windows-default'`` | :class:`WindowsDefault` | \(2) | 139 142 +-----------------------+-----------------------------------------+-------+ 140 | ``' internet-config'`` | :class:`InternetConfig`| \(3) |141 +-----------------------+-----------------------------------------+-------+ 142 | ``' macosx'`` | :class:`MacOSX('default')` | \(4) |143 | ``'macosx'`` | :class:`MacOSX('default')` | \(3) | 144 +-----------------------+-----------------------------------------+-------+ 145 | ``'safari'`` | :class:`MacOSX('safari')` | \(3) | 143 146 +-----------------------+-----------------------------------------+-------+ 144 147 … … 156 159 157 160 (3) 158 Only on Mac OS platforms; requires the standard MacPython :mod:`ic` module.159 160 (4)161 161 Only on Mac OS X platform. 162 162 … … 181 181 182 182 183 .. method:: controller.open(url [, new=0[, autoraise=True]])183 .. method:: controller.open(url, new=0, autoraise=True) 184 184 185 185 Display *url* using the browser handled by this controller. If *new* is 1, a new
Note:
See TracChangeset
for help on using the changeset viewer.