webbrowser
index
/usr/lib/python2.1/webbrowser.py

Interfaces for launching and remotely controlling Web browsers.

 
Modules
            
os
sys

 
Classes
            
exceptions.Exception
Error
GenericBrowser

 
class Error(exceptions.Exception)
       
  
__getitem__(...) from exceptions.Exception
__init__(...) from exceptions.Exception
__str__(...) from exceptions.Exception

 
class GenericBrowser
       
  
__init__(self, cmd)
open(self, url, new=0, autoraise=1)
open_new(self, url)

 
Functions
            
_iscommand(cmd)
Return true if cmd can be found on the executable search path.
_synthesize(browser)
Attempt to synthesize a controller base on existing controllers.
 
This is useful to create a controller when a user specifies a path to
an entry in the BROWSER environment variable -- we can copy a general
controller to operate using a specific installation of the desired
browser in this way.
 
If we can't create a controller in this way, or if there is no
executable for the requested browser, return [None, None].
get(using=None)
Return a browser launcher instance appropriate for the environment.
open(url, new=0, autoraise=1)
open_new(url)
register(name, klass, instance=None)
Register a browser connector and, optionally, connection.

 
Data
             PROCESS_CREATION_DELAY = 4
__all__ = ['Error', 'open', 'get', 'register']
__file__ = '/usr/lib/python2.1/webbrowser.pyc'
__name__ = 'webbrowser'
_browsers = {'links': [None, <webbrowser.GenericBrowser instance>], 'lynx': [None, <webbrowser.GenericBrowser instance>]}
_tryorder = ('links', 'lynx')