kicad2ems.gui.panels

GUI building blocks: a collapsible settings section, an image panel (model,
mesh, line model, convergence plots), a row of controls that wraps when narrow.
class kicad2ems.gui.panels.FlowLayout(parent=None, spacing=6)[source]
A row of controls that wraps onto more lines when the panel is narrow
(Qt's flow layout example). A drop-in for a QHBoxLayout of controls:
addWidget takes (and ignores) a stretch, addStretch / addSpacing do
nothing.
class kicad2ems.gui.panels.ImagePanel(empty='nothing yet')[source]
Plots written by a run (PNG), stacked and scaled to the panel's width; a
note when there are none.
class kicad2ems.gui.panels.NeededList[source]
What a run of the selected question still needs: a line each, which leads
to where it is set (picked: the item, dict(text, key, run)). Nothing needed:
it says so; a question not asked and complete: hidden.
class kicad2ems.gui.panels.Section(title, content, expanded=False, extra=None)[source]
A titled group that folds open and closed: a header (arrow, title, how
many of its settings are set) and the content widget. Collapsed when
made.
set_count(n)[source]
n: how many settings of the section differ from their defaults (shown
in the header).
kicad2ems.gui.panels.refill(combo, items)[source]
A combo box's items anew, [(label, data)], without its signals; the item
that was current stays so (else the first).