Message381917
A coda on my 'obsolete and superseded' claim: text formatting events have 2 sources -- the text being displayed and user actions while reading. formatter somewhat mixes these together.
html.parser.HTMLParser generates events from the text in the form of calls to handle_xyz methods, where 'xyy is most commonly 'starttag', 'data', 'endtag'. HTMLPareser subclasses replace the default 'pass' implementations. So the idea is similar to formatter.NullFormatter. IDLE uses the tkinter Text widget as the writer instance for its HTMLParser subclass. Responses to events may depend on user settings, which may be changed by user events.
For a GUI app, user events are handled by the GUI framework and may or mayy not require user coding to handle. |
|
Date |
User |
Action |
Args |
2020-11-26 22:23:45 | terry.reedy | set | recipients:
+ terry.reedy, vstinner, christian.heimes, corona10, xtreak |
2020-11-26 22:23:45 | terry.reedy | set | messageid: <1606429425.42.0.536882715014.issue42299@roundup.psfhosted.org> |
2020-11-26 22:23:45 | terry.reedy | link | issue42299 messages |
2020-11-26 22:23:44 | terry.reedy | create | |
|