webbrowser.register()

webbrowser.register(name, constructor, instance=None)

Register the browser type name. Once a browser type is registered, the get() function can return a controller for that browser type. If instance is not provided, or is None, constructor will be called without parameters to create an instance when needed. If instance is provided, constructor will never be called, and may be None.

This entry point is only useful if you plan to either set the BROWSER variable or call get() with a nonempty argument matching the name of a handler you declare.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.