KDE 4.6 PyKDE API Reference

- KDE's Python API

# HTMLImageElement Class Reference

`from PyKDE4.khtml import *`

Inherits: DOM.HTMLElement → DOM.Element → DOM.Node
Namespace: DOM

## Detailed Description

Embedded image. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-IMG"> IMG element definition in HTML 4.0.

## Methods

| __init__ (self)
| __init__ (self, DOM.HTMLImageElement other)
| __init__ (self, DOM.Node other)
DOM.DOMString | align (self)
DOM.DOMString | alt (self)
long | border (self)
DOM.DOMString | getBorder (self)
long | height (self)
long | hspace (self)
bool | isMap (self)
DOM.DOMString | longDesc (self)
DOM.DOMString | name (self)
| setAlign (self, DOM.DOMString a0)
| setAlt (self, DOM.DOMString a0)
| setBorder (self, DOM.DOMString a0)
| setBorder (self, long a0)
| setHeight (self, long a0)
| setHspace (self, long a0)
| setIsMap (self, bool a0)
| setLongDesc (self, DOM.DOMString a0)
| setName (self, DOM.DOMString a0)
| setSrc (self, DOM.DOMString a0)
| setUseMap (self, DOM.DOMString a0)
| setVspace (self, long a0)
| setWidth (self, long a0)
DOM.DOMString | src (self)
DOM.DOMString | useMap (self)
long | vspace (self)
long | width (self)
long | x (self)
long | y (self)

## Method Documentation

__init__ | ( |  | self ) |

__init__ | ( | self, |
|  | DOM.HTMLImageElement | other
| ) |  |  |

__init__ | ( | self, |
|  | DOM.Node | other
| ) |  |  |

DOM.DOMString align | ( |  | self ) |

Aligns this object (vertically or horizontally) with respect to its surrounding text. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG"> align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

DOM.DOMString alt | ( |  | self ) |

Alternate text for user agents not rendering the normal content of this element. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt"> alt attribute definition in HTML 4.0.

long border | ( |  | self ) |

Deprecated:

DOM.DOMString getBorder | ( |  | self ) |

Width of border around image. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG"> border attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

long height | ( |  | self ) |

Override height. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-height-IMG"> height attribute definition in HTML 4.0.

long hspace | ( |  | self ) |

Horizontal space to the left and right of this image. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-hspace"> hspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

bool isMap | ( |  | self ) |

Use server-side image map. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-ismap"> ismap attribute definition in HTML 4.0.

DOM.DOMString longDesc | ( |  | self ) |

URI designating a long description of this image or frame. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-longdesc-IMG"> longdesc attribute definition in HTML 4.0.

DOM.DOMString name | ( |  | self ) |

The name of the element (for backwards compatibility).

setAlign | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see align

setAlt | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see alt

setBorder | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

Deprecated:

setBorder | ( | self, |
|  | long | a0
| ) |  |  |

Deprecated:

setHeight | ( | self, |
|  | long | a0
| ) |  |  |

see height

setHspace | ( | self, |
|  | long | a0
| ) |  |  |

see hspace

setIsMap | ( | self, |
|  | bool | a0
| ) |  |  |

see isMap

setLongDesc | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see longDesc

setName | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see name

setSrc | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see src

setUseMap | ( | self, |
|  | DOM.DOMString | a0
| ) |  |  |

see useMap

setVspace | ( | self, |
|  | long | a0
| ) |  |  |

see vspace

setWidth | ( | self, |
|  | long | a0
| ) |  |  |

see width

DOM.DOMString src | ( |  | self ) |

URI designating the source of this image. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-src-IMG"> src attribute definition in HTML 4.0.

DOM.DOMString useMap | ( |  | self ) |

Use client-side image map. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-usemap"> usemap attribute definition in HTML 4.0.

long vspace | ( |  | self ) |

Vertical space above and below this image. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-vspace"> vspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

long width | ( |  | self ) |

Override width. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-width-IMG"> width attribute definition in HTML 4.0.

long x | ( |  | self ) |

Nonstandard extension to DOM.ImgElement

long y | ( |  | self ) |