Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
idlelib.Percolator.Percolator Class Reference

List of all members.

Public Member Functions

def __init__
def close
def insert
def delete
def insertfilter
def removefilter

Public Attributes

 text
 redir
 top
 bottom
 filters

Detailed Description

Definition at line 4 of file Percolator.py.


Constructor & Destructor Documentation

def idlelib.Percolator.Percolator.__init__ (   self,
  text 
)

Definition at line 6 of file Percolator.py.

00006 
00007     def __init__(self, text):
00008         # XXX would be nice to inherit from Delegator
00009         self.text = text
00010         self.redir = WidgetRedirector(text)
00011         self.top = self.bottom = Delegator(text)
00012         self.bottom.insert = self.redir.register("insert", self.insert)
00013         self.bottom.delete = self.redir.register("delete", self.delete)
00014         self.filters = []

Here is the caller graph for this function:


Member Function Documentation

Definition at line 15 of file Percolator.py.

00015 
00016     def close(self):
00017         while self.top is not self.bottom:
00018             self.removefilter(self.top)
00019         self.top = None
00020         self.bottom.setdelegate(None); self.bottom = None
00021         self.redir.close(); self.redir = None
00022         self.text = None

Here is the call graph for this function:

Here is the caller graph for this function:

def idlelib.Percolator.Percolator.delete (   self,
  index1,
  index2 = None 
)

Definition at line 27 of file Percolator.py.

00027 
00028     def delete(self, index1, index2=None):
00029         # Could go away if inheriting from Delegator
00030         self.top.delete(index1, index2)

def idlelib.Percolator.Percolator.insert (   self,
  index,
  chars,
  tags = None 
)

Definition at line 23 of file Percolator.py.

00023 
00024     def insert(self, index, chars, tags=None):
00025         # Could go away if inheriting from Delegator
00026         self.top.insert(index, chars, tags)

Here is the caller graph for this function:

def idlelib.Percolator.Percolator.insertfilter (   self,
  filter 
)

Definition at line 31 of file Percolator.py.

00031 
00032     def insertfilter(self, filter):
00033         # Perhaps rename to pushfilter()?
00034         assert isinstance(filter, Delegator)
00035         assert filter.delegate is None
00036         filter.setdelegate(self.top)
00037         self.top = filter

def idlelib.Percolator.Percolator.removefilter (   self,
  filter 
)

Definition at line 38 of file Percolator.py.

00038 
00039     def removefilter(self, filter):
00040         # XXX Perhaps should only support popfilter()?
00041         assert isinstance(filter, Delegator)
00042         assert filter.delegate is not None
00043         f = self.top
00044         if f is filter:
00045             self.top = filter.delegate
00046             filter.setdelegate(None)
00047         else:
00048             while f.delegate is not filter:
00049                 assert f is not self.bottom
00050                 f.resetcache()
00051                 f = f.delegate
00052             f.setdelegate(filter.delegate)
00053             filter.setdelegate(None)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 10 of file Percolator.py.

Definition at line 13 of file Percolator.py.

Definition at line 9 of file Percolator.py.

Definition at line 8 of file Percolator.py.

Definition at line 10 of file Percolator.py.


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