Back to index

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

List of all members.

Public Member Functions

def __init__
def recalc
def format
def xml

Public Attributes

 text
 fmt
 alignment

Detailed Description

Definition at line 369 of file ss1.py.


Constructor & Destructor Documentation

def ss1.StringCell.__init__ (   self,
  text,
  fmt = "%s",
  alignment = LEFT 
)

Definition at line 371 of file ss1.py.

00371 
00372     def __init__(self, text, fmt="%s", alignment=LEFT):
00373         assert isinstance(text, (str, str))
00374         assert alignment in (LEFT, CENTER, RIGHT)
00375         self.text = text
00376         self.fmt = fmt
00377         self.alignment = alignment

Here is the caller graph for this function:


Member Function Documentation

def ss1.StringCell.format (   self)

Definition at line 381 of file ss1.py.

00381 
00382     def format(self):
00383         return self.text, self.alignment

Here is the caller graph for this function:

def ss1.StringCell.recalc (   self,
  ns 
)

Definition at line 378 of file ss1.py.

00378 
00379     def recalc(self, ns):
00380         return self.text

def ss1.StringCell.xml (   self)

Definition at line 384 of file ss1.py.

00384 
00385     def xml(self):
00386         s = '<value align="%s" format="%s"><string>%s</string></value>'
00387         return s % (
00388             align2xml[self.alignment],
00389             self.fmt,
00390             html.escape(self.text))


Member Data Documentation

Definition at line 376 of file ss1.py.

Definition at line 375 of file ss1.py.

Definition at line 374 of file ss1.py.


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