Package nMOLDYN :: Package GUI :: Package HTMLReader :: Module tkhtml :: Class tkHTMLParser |
[hide private]
[frames] | no frames]

# Class tkHTMLParser

source code

    markupbase.ParserBase --+
                            |
           sgmllib.SGMLParser --+
                                |
               htmllib.HTMLParser --+
                                    |
                                   tkHTMLParser

Instance Methods | [hide private]
anchor_bgn(self, href, name, type) This method is called at the start of an anchor region. | source code
anchor_end(self) This method is called at the end of an anchor region. | source code
do_dt(self, attrs) | source code
handle_image(self, src, alt, ismap, align, width, height) This method is called to handle images. | source code
Inherited from `htmllib.HTMLParser`: `__init__`, `ddpop`, `do_base`, `do_br`, `do_dd`, `do_hr`, `do_img`, `do_isindex`, `do_li`, `do_link`, `do_meta`, `do_nextid`, `do_p`, `do_plaintext`, `end_a`, `end_address`, `end_b`, `end_blockquote`, `end_body`, `end_cite`, `end_code`, `end_dir`, `end_dl`, `end_em`, `end_h1`, `end_h2`, `end_h3`, `end_h4`, `end_h5`, `end_h6`, `end_head`, `end_html`, `end_i`, `end_kbd`, `end_listing`, `end_menu`, `end_ol`, `end_pre`, `end_samp`, `end_strong`, `end_title`, `end_tt`, `end_ul`, `end_var`, `end_xmp`, `error`, `handle_data`, `reset`, `save_bgn`, `save_end`, `start_a`, `start_address`, `start_b`, `start_blockquote`, `start_body`, `start_cite`, `start_code`, `start_dir`, `start_dl`, `start_em`, `start_h1`, `start_h2`, `start_h3`, `start_h4`, `start_h5`, `start_h6`, `start_head`, `start_html`, `start_i`, `start_kbd`, `start_listing`, `start_menu`, `start_ol`, `start_pre`, `start_samp`, `start_strong`, `start_title`, `start_tt`, `start_ul`, `start_var`, `start_xmp`, `unknown_endtag`, `unknown_starttag` Inherited from `sgmllib.SGMLParser`: `close`, `convert_charref`, `convert_codepoint`, `convert_entityref`, `feed`, `finish_endtag`, `finish_shorttag`, `finish_starttag`, `get_starttag_text`, `goahead`, `handle_charref`, `handle_comment`, `handle_decl`, `handle_endtag`, `handle_entityref`, `handle_pi`, `handle_starttag`, `parse_endtag`, `parse_pi`, `parse_starttag`, `report_unbalanced`, `setliteral`, `setnomoretags`, `unknown_charref`, `unknown_entityref` Inherited from `sgmllib.SGMLParser` (private): `_convert_ref` Inherited from `markupbase.ParserBase`: `getpos`, `parse_comment`, `parse_declaration`, `parse_marked_section`, `unknown_decl`, `updatepos` Inherited from `markupbase.ParserBase` (private): `_parse_doctype_attlist`, `_parse_doctype_element`, `_parse_doctype_entity`, `_parse_doctype_notation`, `_parse_doctype_subset`, `_scan_name`

Class Variables | [hide private]
Inherited from `sgmllib.SGMLParser`: `entity_or_charref` Inherited from `sgmllib.SGMLParser` (private): `_decl_otherchars`

Method Details | [hide private]

### anchor_bgn(self, href, name, type) | source code
This method is called at the start of an anchor region. The arguments correspond to the attributes of the <A> tag with the same names. The default implementation maintains a list of hyperlinks (defined by the HREF attribute for <A> tags) within the document. The list of hyperlinks is available as the data attribute anchorlist. Overrides: htmllib.HTMLParser.anchor_bgn (inherited documentation)

### anchor_end(self) | source code
This method is called at the end of an anchor region. The default implementation adds a textual footnote marker using an index into the list of hyperlinks created by the anchor_bgn()method. Overrides: htmllib.HTMLParser.anchor_end (inherited documentation)

### do_dt(self, attrs) | source code
Overrides: htmllib.HTMLParser.do_dt

### handle_image(self, src, alt, ismap, align, width, height) | source code
This method is called to handle images. The default implementation simply passes the alt value to the handle_data() method. Overrides: htmllib.HTMLParser.handle_image (inherited documentation)