Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
webbrowser.BackgroundBrowser Class Reference
Inheritance diagram for webbrowser.BackgroundBrowser:
Inheritance graph
[legend]
Collaboration diagram for webbrowser.BackgroundBrowser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def open
def open_new
def open_new_tab

Public Attributes

 name
 args
 basename
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Class for all browsers which are to be started in the
   background.

Definition at line 185 of file webbrowser.py.


Member Function Documentation

def webbrowser.BackgroundBrowser.open (   self,
  url,
  new = 0,
  autoraise = True 
)

Reimplemented from webbrowser.GenericBrowser.

Definition at line 189 of file webbrowser.py.

00189 
00190     def open(self, url, new=0, autoraise=True):
00191         cmdline = [self.name] + [arg.replace("%s", url)
00192                                  for arg in self.args]
00193         try:
00194             if sys.platform[:3] == 'win':
00195                 p = subprocess.Popen(cmdline)
00196             else:
00197                 setsid = getattr(os, 'setsid', None)
00198                 if not setsid:
00199                     setsid = getattr(os, 'setpgrp', None)
00200                 p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid)
00201             return (p.poll() is None)
00202         except OSError:
00203             return False
00204 

Here is the call graph for this function:

def webbrowser.BaseBrowser.open_new (   self,
  url 
) [inherited]

Definition at line 151 of file webbrowser.py.

00151 
00152     def open_new(self, url):
00153         return self.open(url, 1)

Here is the call graph for this function:

def webbrowser.BaseBrowser.open_new_tab (   self,
  url 
) [inherited]

Definition at line 154 of file webbrowser.py.

00154 
00155     def open_new_tab(self, url):
00156         return self.open(url, 2)
00157 

Here is the call graph for this function:


Member Data Documentation

Reimplemented from webbrowser.BaseBrowser.

Definition at line 165 of file webbrowser.py.

Reimplemented from webbrowser.BaseBrowser.

Definition at line 170 of file webbrowser.py.

Reimplemented from webbrowser.BaseBrowser.

Definition at line 164 of file webbrowser.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: