KDE 4.9 PyKDE API Reference

- KDE's Python API

# HTMLObjectElement Class Reference

`from PyKDE4.khtml import *`

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

## Detailed Description

Generic embedded object. Note. In principle, all properties on the object element are read-write but in some environments some properties may be read-only once the underlying object is instantiated. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-OBJECT"> OBJECT element definition in HTML 4.0.

## Methods

| __init__ (self)
| __init__ (self, DOM.HTMLObjectElement other)
| __init__ (self, DOM.Node other)
DOM.DOMString | align (self)
DOM.DOMString | archive (self)
DOM.DOMString | border (self)
DOM.DOMString | code (self)
DOM.DOMString | codeBase (self)
DOM.DOMString | codeType (self)
DOM.Document | contentDocument (self)
DOM.DOMString | data (self)
bool | declare (self)
DOM.HTMLFormElement | form (self)
long | getHspace (self)
long | getVspace (self)
DOM.DOMString | height (self)
DOM.DOMString | hspace (self)
DOM.DOMString | name (self)
| setAlign (self, DOM.DOMString a0)
| setArchive (self, DOM.DOMString a0)
| setBorder (self, DOM.DOMString a0)
| setCode (self, DOM.DOMString a0)
| setCodeBase (self, DOM.DOMString a0)
| setCodeType (self, DOM.DOMString a0)
| setData (self, DOM.DOMString a0)
| setDeclare (self, bool a0)
| setHeight (self, DOM.DOMString a0)
| setHspace (self, long a0)
| setHspace (self, DOM.DOMString a0)
| setName (self, DOM.DOMString a0)
| setStandby (self, DOM.DOMString a0)
| setTabIndex (self, long a0)
| setType (self, DOM.DOMString a0)
| setUseMap (self, DOM.DOMString a0)
| setVspace (self, long a0)
| setVspace (self, DOM.DOMString a0)
| setWidth (self, DOM.DOMString a0)
DOM.DOMString | standby (self)
long | tabIndex (self)
DOM.DOMString | type (self)
DOM.DOMString | useMap (self)
DOM.DOMString | vspace (self)
DOM.DOMString | width (self)

## Method Documentation

__init__ | ( |  | self ) |

__init__ | ( | self, |
|  | DOM.HTMLObjectElement | 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 archive | ( |  | self ) |

Space-separated list of archives. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-archive-OBJECT"> archive attribute definition in HTML 4.0.

DOM.DOMString border | ( |  | self ) |

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

DOM.DOMString code | ( |  | self ) |

Applet class file. See the code attribute for HTMLAppletElement.

DOM.DOMString codeBase | ( |  | self ) |

Base URI for classid , data , and archive attributes. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codebase-OBJECT"> codebase attribute definition in HTML 4.0.

DOM.DOMString codeType | ( |  | self ) |

Content type for data downloaded via classid attribute. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codetype"> codetype attribute definition in HTML 4.0.

DOM.Document contentDocument | ( |  | self ) |

Introduced in DOM Level 2

Returns the document this iframe contains, if there is any and it is available, a Null document otherwise. The attribute is read-only.

Returns:
  The content Document if available.

DOM.DOMString data | ( |  | self ) |

A URI specifying the location of the object's data. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-data"> data attribute definition in HTML 4.0.

bool declare | ( |  | self ) |

Declare (for future reference), but do not instantiate, this object. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-declare"> declare attribute definition in HTML 4.0.

DOM.HTMLFormElement form | ( |  | self ) |

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

long getHspace | ( |  | self ) |

Horizontal space, in pixels, to the left and right of this image, applet, or object. 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.

long getVspace | ( |  | self ) |

Vertical space, in pixels, above and below this image, applet, or object. 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.

DOM.DOMString 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.

DOM.DOMString hspace | ( |  | self ) |

Deprecated:

DOM.DOMString name | ( |  | self ) |

Form control or object name when submitted with a form. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-INPUT"> name attribute definition in HTML 4.0.

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

see align

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

see archive

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

see border

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

see code

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

see codeBase

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

see codeType

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

see data

setDeclare | ( | self, |
|  | bool | a0
| ) |  |  |

see declare

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

see height

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

Deprecated:

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

Deprecated:

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

see name

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

see standby

setTabIndex | ( | self, |
|  | long | a0
| ) |  |  |

see tabIndex

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

see type

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

see useMap

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

Deprecated:

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

Deprecated:

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

see width

DOM.DOMString standby | ( |  | self ) |

Message to render while loading the object. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-standby"> standby attribute definition in HTML 4.0.

long tabIndex | ( |  | self ) |

Index that represents the element's position in the tabbing order. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex"> tabindex attribute definition in HTML 4.0.

DOM.DOMString type | ( |  | self ) |

Content type for data downloaded via data attribute. See the <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-type-OBJECT"> type 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.

DOM.DOMString vspace | ( |  | self ) |

Deprecated:

DOM.DOMString 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.