import HTMLgen
class Area(AbstractTagSingle)
string __module__ = 'HTMLgen'
dictionary attr_dict = {'id': '', 'target': '', ' ...
string attr_template = '%(alt)s%(class)s%(coords) ...
tuple attrs = ('alt', 'class', 'coords', ...
string tagname = 'AREA'
# Methods inherited by Area from AbstractTagSingle
def __init__(self, *args, **kw)
def __setattr__(self, name, value)
def __str__(self)
The area is linked to a HREF specified by the href attribute.
The coords attribute is required and describes the position of
an area (in pixels) of the image in comma-separated x,y
coordinates where the upper-left corner is "0,0". For shape=rect
(the default), it is "left,top,right,bottom". For shape=circle
,
it is "center_x,center_y,radius". For shape=polygon
, it is
successive x,y vertices of the polygon. If the first and last
coordinates are not the same, then a segment is inferred to close
the polygon. If no href keyword is given a NOHREF will be
generated indicating that this region should generate no links.
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.
Generate an HTML formatted string for this object.
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999