Back to index

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

List of all members.

Public Member Functions

def open
def open_new
def open_new_tab

Public Attributes

 name
 basename
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

list raise_opts = ["-noraise", ""]
list remote_args = ['%action', '%s']
string remote_action = "-n"
string remote_action_newwin = "-w"
 background = True
 remote_action_newtab = None
 redirect_stdout = True
list args = ['%s']

Detailed Description

Launcher class for Galeon/Epiphany browsers.

Definition at line 292 of file webbrowser.py.


Member Function Documentation

def webbrowser.UnixBrowser.open (   self,
  url,
  new = 0,
  autoraise = True 
) [inherited]

Reimplemented from webbrowser.BaseBrowser.

Definition at line 254 of file webbrowser.py.

00254 
00255     def open(self, url, new=0, autoraise=True):
00256         if new == 0:
00257             action = self.remote_action
00258         elif new == 1:
00259             action = self.remote_action_newwin
00260         elif new == 2:
00261             if self.remote_action_newtab is None:
00262                 action = self.remote_action_newwin
00263             else:
00264                 action = self.remote_action_newtab
00265         else:
00266             raise Error("Bad 'new' parameter to open(); " +
00267                         "expected 0, 1, or 2, got %s" % new)
00268 
00269         args = [arg.replace("%s", url).replace("%action", action)
00270                 for arg in self.remote_args]
00271         success = self._invoke(args, True, autoraise)
00272         if not success:
00273             # remote invocation failed, try straight way
00274             args = [arg.replace("%s", url) for arg in self.args]
00275             return self._invoke(args, False, False)
00276         else:
00277             return True
00278 

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

list webbrowser.BaseBrowser.args = ['%s'] [static, inherited]

Reimplemented in webbrowser.GenericBrowser.

Definition at line 142 of file webbrowser.py.

Reimplemented from webbrowser.UnixBrowser.

Definition at line 299 of file webbrowser.py.

Reimplemented in webbrowser.GenericBrowser.

Definition at line 146 of file webbrowser.py.

Reimplemented in webbrowser.MacOSX, and webbrowser.GenericBrowser.

Definition at line 145 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.

list webbrowser.Galeon.raise_opts = ["-noraise", ""] [static]

Reimplemented from webbrowser.UnixBrowser.

Definition at line 295 of file webbrowser.py.

webbrowser.UnixBrowser.redirect_stdout = True [static, inherited]

Reimplemented in webbrowser.Elinks.

Definition at line 214 of file webbrowser.py.

Reimplemented from webbrowser.UnixBrowser.

Definition at line 297 of file webbrowser.py.

webbrowser.UnixBrowser.remote_action_newtab = None [static, inherited]

Reimplemented in webbrowser.Elinks, webbrowser.Opera, and webbrowser.Mozilla.

Definition at line 212 of file webbrowser.py.

Reimplemented from webbrowser.UnixBrowser.

Definition at line 298 of file webbrowser.py.

list webbrowser.Galeon.remote_args = ['%action', '%s'] [static]

Reimplemented from webbrowser.UnixBrowser.

Definition at line 296 of file webbrowser.py.


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