Return a controller object for the browser type using. Open url in a new page (“tab”) of the default browser, if possible, otherwiseĮquivalent to open_new(). Open url in a new window of the default browser, if possible, otherwise, open Raises an auditing event webbrowser.open with argument url. May work and start the operating system’s associated program. Note that on some platforms, trying to open a filename using this function, (note that under many window managers this will occur regardless of the If autoraise is True, the window is raised if possible If new is 2, a new browser page (“tab”) is opened open ( url, new = 0, autoraise = True ) ¶ĭisplay url using the default browser. The following functions are defined: webbrowser. Error ¶Įxception raised when a browser control error occurs. The following exception is defined: exception webbrowser. WebAssembly platforms for more information. This module does not work or is not available on WebAssembly platforms t opens the URL in a new browser page (“tab”). Parameters: -n opens the URL in a new browser window, if possible The script webbrowser can be used as a command-line interface for the If remoteīrowsers are not available on Unix, the controlling process will launch a new 1įor non-Unix platforms, or when a remote browser is available on Unix, theĬontrolling process will not wait for the user to finish with the browser, butĪllow the remote browser to maintain its own windows on the display. Interpreted as the name of the browser to launch. Substituted for %s if the part does not contain %s, it is simply Interpreted as a literal browser command line to be used with the argument URL When the value of a list part contains the string %s, then it is Os.pathsep-separated list of browsers to try ahead of the platformĭefaults. If the environment variable BROWSER exists, it is interpreted as the If text-mode browsers are used, the calling process will block until Will be used if graphical browsers are not available or an X11 display isn’tĪvailable. Under Unix, graphical browsers are preferred under X11, but text-mode browsers Open() function from this module will do the right thing. Under most circumstances, simply calling the The webbrowser module provides a high-level interface to allow displaying Webbrowser - Convenient web-browser controller ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |