Previous Next blank.gif blank.gif

Class BaseFont


SYNOPSIS

import HTMLgen
class BaseFont(AbstractTagSingle)
  string __module__ = 'HTMLgen'
  dictionary attr_dict = {'size': '', 'name': '', ' ...
  string attr_template = '%(color)s%(name)s%(size)s'
  tuple attrs = ('color', 'name', 'size')
  string tagname = 'BASEFONT'

  # Methods inherited by BaseFont from AbstractTagSingle
  def __init__(self, *args, **kw)
  def __setattr__(self, name, value)
  def __str__(self)

DESCRIPTION

Specify the font size for subsequent text.

def __setattr__(self, name, value)

Intercept attribute assignments.

If the attribute is a legal HTML tag attribute add it to the dict used for substitution in __str__, otherwise just set it as an instance attribute.

def __str__(self)

Generate an HTML formatted string for this object.

SEE ALSO

HTMLgen

AbstractTagSingle


Previous Next blank.gif blank.gif
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999