Helper class to print matplotlib charts
Parameters: | chart – a camelot.container.chartcontainer.FigureContainer object or a camelot.container.chartcontainer.AxesContainer subclass |
---|
Display a print preview dialog box for a matplotlib chart.
Parameters: | chart – a camelot.container.chartcontainer.FigureContainer object or a camelot.container.chartcontainer.AxesContainer subclass |
---|
Example use of this action step :
Display a print preview dialog box for an html string.
Parameters: | html – a string containing the html to render in the print preview. |
---|
the rendering of the html can be customised using the same attributes as those of the PrintPreview class.
Render a jinja template into a print preview dialog.
Parameters: |
|
---|
Display a print preview dialog box.
Parameters: | document – an instance of QtGui.QTextDocument or QtWebKit.QWebView that has a print_() method. The thread affinity of this object will be changed to be able to use it in the GUI. |
---|
the print preview can be customised using these attributes :
change the left margin of the content to the page border, unit is set by margin_unit
change the top margin of the content to the page border, unit is set by margin_unit
change the right margin of the content to the page border, unit is set by margin_unit
change the bottom margin of the content to the page border, unit is set by margin_unit
defin which unit is used for the defined margins (e.g. margin_left, margin_bottom)
the page size, by default QtGui.QPrinter.A4 is used
the page orientation, by default QtGui.QPrinter.Portrait is used.
the QtGui.QTextDocument holding the document that will be shown in the print preview
A custom QtGui.QPrintPreviewDialog that allows additional actions on the toolbar.
Parameters: |
|
---|