Widget objects whose widget class is subclassed from html have the following additional methods:
name) |
id
.
This function corresponds with HTMLAnchorToId.
Convenience function to return the element id of the anchor based on the anchor name passed. Function returns id on success. If there is no such element, 0
is returned.
name) |
(x,y)
.
This function corresponds with HTMLAnchorToPosition.
Convenience function to return the position of the anchor based on the anchor name passed. If there is no such element, a ValueError is raised.
) |
x, y, width, height) |
) |
href_list
.
This function corresponds with HTMLFreeImageInfo.
) |
href_list
.
This function corresponds with HTMLGetActions.
Convenience function to return the ACTIONs of all active forms in the document. Function returns an array of strings.
) |
href_list
.
This function corresponds with HTMLGetHRefs.
Convenience function to return the HREFs of all active anchors in the document. Function returns an array of strings.
) |
src_list
.
This function corresponds with HTMLGetImageSrcs.
Convenience function to return the SRCs of all images in the document. Function returns a list of strings.
) |
link_list
.
This function corresponds with HTMLGetLinks.
) |
list of list of name,value tuples
.
Convenience function to return a list of (name,value) pairs for all form elements in all active forms. Function returns a list containing, for each form in the document, a list of tuples.
pretty[, url[, time_str]]) |
text
.
This function corresponds with HTMLGetText.
Convenience function to return the text of the HTML document as a plain ascii text string. Extra option flags pretty text to be returned. When pretty is two or larger, Postscript is returned. The font used is encoded in the pretty parameter: pretty = 2
: Times; pretty = 3
: Helvetica; pretty = 4
: New century schoolbook; pretty = 5
: Lucida Bright.
) |
(text, start, end, insert)
.
This function corresponds with HTMLGetTextAndSelection.
Convenience function to return the text of the HTML document as a single white space separated string, with pointers to the various start and end points of selections.
id) |
0
means goto the top.
id) |
(x,y)
.
This function corresponds with HTMLIdToPosition.
Convenience function to return the position of the element based on the element id passed in. If there is no such element, a ValueError is raised.
x, y) |
id
.
This function corresponds with HTMLPositionToId.
Convenience function to return the element id of the element nearest to the x,y
coordinates passed in. If there is no element there, return the first element in the line we are on. If we are on no line, either return the beginning, or the end of the document.
pattern[, start[, backward[, caseless]]]) |
((start_id, start_pos), (end_id, end_pos))
.
This function corresponds with HTMLSearchText.
Convenience function to search the text of the HTML document as a single white space separated string. Linefeeds are converted into spaces. Takes a pattern, and, optionally, the location to start the search from for incremental searching. Default start is the beginning of the document for forward searching, and the end of the document for backwards searching. The backward and caseless parameters I hope are self-explanatory. Returns the start and end positions on success, and raises a ValueError otherwise.
) |
) |
policy) |
(start_id, start_pos), (end_id, end_pos)) |
text, header_text, footer_text[, id[, target_anchor]]) |
direction) |