import HTMLgen
class Image(AbstractTagSingle)
def __init__(self, *args, **kw)
string __module__ = 'HTMLgen'
def __str__(self)
dictionary attr_dict = {'class': '', 'border': '' ...
string attr_template = '%(src)s%(height)s%(width) ...
tuple attrs = ('src', 'height', 'width', ...
def calc_rel_path(self, from_dir=None)
def process_arg(self, arg)
string tagname = 'IMG'
# Methods inherited by Image from AbstractTagSingle
def __setattr__(self, name, value)
alias IMG = Image
The filename argument is a filename, or URL of a graphic image, or a triple of ( filename, width, height ) where dimensions are in pixels. Where the filename is found to be a valid pathname to an existing GIF file that file will be read to determine its width and height properties.
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.
Calculate the relative path from from_dir
to the
absolute location of the image file.
Sets self.prefix.
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Sat Mar 7 1998