spug.nml.tcltext
index
/home/mmuller/w/spug/nml/tcltext.py

Contains the TCLTextFormatter: an NML formatter that formats a TextBlock
onto a Tkinter Text control.

 
Modules
       
re
string
sys
_tkinter

 
Classes
       
nml.StdFormatter.StdFormatter
nml.tcltext.TCLTextFormatter

 
class TCLTextFormatter(nml.StdFormatter.StdFormatter)
    Class for formatting a TextBlock onto a TCL text control.
 
  Methods defined here:
__init__(self, textctl)
configTag(self, state)
format(self, text)
Formats the given text block into the text control.
formatAll(self, text)
formatDI(self, text)
Formats a definition item.
formatDL(self, text)
Formats a definition list.
formatDoc(self, text)
Formats an entire document.
formatText(self, text)
Formats plain old text.
formatTextAttr(self, text, attr)
Formats text with a special attribute /attr/.
formatUL(self, text)
Formats an unordered list.

Data and other attributes defined here:
bold = 1
boldFont = '-*-helvetica-bold-r-*-*-*-120-*'
italic = 4
italicFont = '-*-helvetica-medium-o-*-*-*-120-*'
stdFont = '-*-helvetica-medium-r-*-*-*-120-*'
tele = 8
teleFont = '-*-courier-medium-r-*-*-*-120-*'
underline = 2

Methods inherited from nml.StdFormatter.StdFormatter:
close(self)
Closes the formatting of the block, committing the contents of the
buffer.

Data and other attributes inherited from nml.StdFormatter.StdFormatter:
wsrx = <_sre.SRE_Pattern object at 0x821a800>

 
Data
        ACTIVE = 'active'
ALL = 'all'
ANCHOR = 'anchor'
ARC = 'arc'
BASELINE = 'baseline'
BEVEL = 'bevel'
BOTH = 'both'
BOTTOM = 'bottom'
BROWSE = 'browse'
BUTT = 'butt'
CASCADE = 'cascade'
CENTER = 'center'
CHAR = 'char'
CHECKBUTTON = 'checkbutton'
CHORD = 'chord'
COMMAND = 'command'
CURRENT = 'current'
DISABLED = 'disabled'
DOTBOX = 'dotbox'
E = 'e'
END = 'end'
EW = 'ew'
EXCEPTION = 8
EXTENDED = 'extended'
FALSE = 0
FIRST = 'first'
FLAT = 'flat'
GROOVE = 'groove'
HIDDEN = 'hidden'
HORIZONTAL = 'horizontal'
INSERT = 'insert'
INSIDE = 'inside'
LAST = 'last'
LEFT = 'left'
MITER = 'miter'
MOVETO = 'moveto'
MULTIPLE = 'multiple'
N = 'n'
NE = 'ne'
NO = 0
NONE = 'none'
NORMAL = 'normal'
NS = 'ns'
NSEW = 'nsew'
NUMERIC = 'numeric'
NW = 'nw'
OFF = 0
ON = 1
OUTSIDE = 'outside'
PAGES = 'pages'
PIESLICE = 'pieslice'
PROJECTING = 'projecting'
RADIOBUTTON = 'radiobutton'
RAISED = 'raised'
READABLE = 2
RIDGE = 'ridge'
RIGHT = 'right'
ROUND = 'round'
S = 's'
SCROLL = 'scroll'
SE = 'se'
SEL = 'sel'
SEL_FIRST = 'sel.first'
SEL_LAST = 'sel.last'
SEPARATOR = 'separator'
SINGLE = 'single'
SOLID = 'solid'
SUNKEN = 'sunken'
SW = 'sw'
StringTypes = (<type 'str'>, <type 'unicode'>)
TOP = 'top'
TRUE = 1
TclVersion = 8.4000000000000004
TkVersion = 8.4000000000000004
UNDERLINE = 'underline'
UNITS = 'units'
VERTICAL = 'vertical'
W = 'w'
WORD = 'word'
WRITABLE = 4
X = 'x'
Y = 'y'
YES = 1
wantobjects = 1