Defines classes and functions for working with Qt’s rich text system.
Bases: object
A stateful HTML exporter for a Q(Plain)TextEdit.
This class is designed for convenient user interaction.
Creates an HtmlExporter for the given Q(Plain)TextEdit.
Displays a dialog for exporting HTML generated by Qt’s rich text system.
Returns: | The name of the file that was saved, or None if no file was saved. |
---|
Export the contents of the ConsoleWidget as HTML.
Parameters: | html : unicode,
filename : str
image_tag : callable, optional (default None)
inline : bool, optional [default True]
|
---|
Export the contents of the ConsoleWidget as XHTML with inline SVGs.
Parameters: | html : unicode,
filename : str
image_tag : callable, optional (default None)
|
---|
Return (X)HTML mark-up for the image-tag given by match.
This default implementation merely removes the image, and exists mostly for documentation purposes. More information than is present in the Qt HTML is required to supply the images.
Parameters: | match : re.SRE_Match
path : string|None, optional [default None]
format : “png”|”svg”, optional [default “png”]
|
---|
Transforms a Qt-generated HTML string into a standards-compliant one.
Parameters: | html : unicode,
|
---|