Previous Next blank.gif Home Page

Class TR - Table Row. Contains a series of TH or TD cells.


SYNOPSIS

import HTMLgen
class TR(Container, Tbase)
  tuple attrs = ('align', 'valign', 'bgcolor')
  string tagname = 'TR'

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

  # Methods inherited by TR 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 ot either top|middle|bottom|baseline for vertical alignment
bgcolor
color string used for the background of the table row

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