Back to index

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

List of all members.

Public Member Functions

def __init__
def recalc
def format
def xml

Public Attributes


Detailed Description

Definition at line 369 of file

Constructor & Destructor Documentation

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

Definition at line 371 of file

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

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

Here is the caller graph for this function:

def ss1.StringCell.recalc (   self,

Definition at line 378 of file

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

def ss1.StringCell.xml (   self)

Definition at line 384 of file

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

Definition at line 375 of file

Definition at line 374 of file

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