kicad2ems.gui.reportview¶
An analysis's report on the Results page (Analysis.report: a title, a line,
sections of text and tables, notes, pictures): as a page to read, or as its
tables to sort, copy and export. The helpers need no Qt.
to_html(report) the page
tables(report) [(title, table)]: the sections that hold one
cell(value, format) a cell as it is shown; to_csv(table) a table as CSV
text
standalone(report) the page as a file of its own (pictures inside it)
view = ReportView(); view.set_report(report); view.set_mode('Tables')
view.save('r.html' | 'r.pdf'); view.print_()
- class kicad2ems.gui.reportview.ReportView(parent=None)[source]¶
The report to read (a page) or its tables one at a time: sorted by a click on a column, copied (the selection, or all of it, tab-separated: it pastes into a spreadsheet), exported as CSV.
- print_(printer=None)[source]¶
The report on a printer: the print dialog without one (its own Print to PDF too). True when printed.
- save(path=None)[source]¶
The report as a file: .html (standalone: its pictures inside it) or .pdf (as the page shows it). Asks where without a path; returns the path written, or None.
- kicad2ems.gui.reportview.cell(v, fmt=None)[source]¶
A cell as it is shown: a number by its column's format (None: '.4g'), anything else as it is.
- kicad2ems.gui.reportview.standalone(report)[source]¶
The page as a file of its own: its pictures inside it (data URIs), so it opens anywhere, sent or moved.