Previous Next blank.gif Home Page

Class TD - Data cell.


SYNOPSIS

import HTMLgen
class TD(Container, Tbase)
  tuple attrs = ('align', 'valign', 'rowsp ...
  tuple flags = ('nowrap',)
  string tagname = 'TD'

  # Methods inherited by TD from Tbase
  def __init__(self, arg=None, **kw)
  def __repr__(self)
  def end_tag(self)
  def start_tag(self)

  # Methods inherited by TD from Container
  def __add__(self, other)
  def append(self, *items)
  def copy(self)
  def empty(self)
  def last(self)
  def length(self)
  def prepend(self, *items)

DESCRIPTION

def __add__(self, other)

Support self + list

def __repr__(self)

default string for this markup

def append(self, *items)

Append one or more items to the end of the container.

def copy(self)

Return a full copy of the object.

def empty(self)

Empty the contents of the container.

def end_tag(self)

Return end tag for this tag type

def last(self)

Return the last item in the container.

def length(self)

Return the integer length of the container list.

def prepend(self, *items)

Prepend one or more items to the top of the container.

def start_tag(self)

Return start tag for this tag type including all attributes

Keywords Available

align
set to either left|right|center|justify|char|decimal
valign
set to either top|middle|bottom|baseline
rowspan
integer number of rows this cell should span
colspan
integer number of columns this cell should span
nowrap
flag to indicate that no text wrapping be done on this cell
width
integer or percent to force cell width
bgcolor
color string used for the background of the table data

SEE ALSO

HTMLgen

Container

Tbase


Previous Next blank.gif Home Page
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedric@phoenix.net
Generated: Mon Dec 2 1996