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.
set_report(report, own=None)[source]
The report shown (None: none; then `own`, an S-parameter run's own
report file, is linked); the table chosen stays when the new report has
one of its title.
table()[source]
The table shown: (title, table), 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.
kicad2ems.gui.reportview.tables(report)[source]
[(title, table)] of the report's sections that hold a table (an untitled
one: 'Table n').
kicad2ems.gui.reportview.to_html(report, width=820)[source]
The report as a page: its title, each section (its heading, text, table
and notes), the notes, the pictures, the footer.