kicad2ems.gui.toolprocess

A page's tool as a child process (pcbqs's PDN, near-field and circuit tools,
dfsynth): the page never imports it. Decided (R-F2): the Circuit page's editor
imports pcbqs's circuit model, templates and netlist reader in the window (pure
Python, no ngspice, no solver): it checks each edit as it is made, which a child
process per edit could not; the runs are child processes as every other tool's.

    describe_tool(python, args, name, install)   (its --describe --json, or
                                                 None; why not), asked once
    run_tool(page, argv, on_output, on_finished) page.proc: a QProcess running
                                                 argv, its output merged
kicad2ems.gui.toolprocess.describe_tool(python, args, name, install, fmt=1, too_old=None)[source]
(description, '') from `python <args> --describe --json`, or (None, why
it cannot run here): not installed (`install` says how), too old to describe
itself (`too_old`, when given), or in another format than `fmt`.
kicad2ems.gui.toolprocess.run_tool(page, argv, on_output, on_finished, cwd=None, env=None)[source]
Start argv as page.proc (unbuffered Python output, stdout and stderr
merged, `env` added). When it cannot start, page.say (if it has one) gets
why and on_finished(-1, None) runs.