kicad2ems.gui.studytree

The questions' list in the Study dock: the view of a study.StudyModel.

    StudyTree(model=None)  a row per question, by group: a tick (it is asked),
                           who answers it (a menu: one engine, or several to
                           compare), a tick for its field dumps where an engine
                           can write them, and its state (else when the
                           config's runs last answered it: a click shows that
                           run)

The model holds the study (what is asked, by whom, the Fields ticks, what cannot
run here, each run's state) and answers every question about it; the list draws
it, passes on the user's hand, and says which question is selected. What the
model has is reached through the list too (`list.asked()`, `list.jobs()`,
`list.choice`), so the window talks to one object.
kicad2ems.gui.studytree.StudyList

alias of StudyTree

class kicad2ems.gui.studytree.StudyTree(model=None)[source]
The questions, by group: a tick (Run and Preview include it), who answers
it (click the cell: a menu of its engines, several ticked are compared), a
tick for its field dumps where an engine can write them, its state. The
selected question's settings are the ones the dock shows.
ask(key, questions=None)[source]
The questions a run answers asked too (the model's ask), the list's
signal with it.
choose(q, name, on)[source]
Tick or untick an engine of a question ('auto': its default alone). A
solver question: the solver's tick box.
current()[source]
The run of the selected question: 'rf' or an analysis.
engine_menu(q, menu=None)[source]
The menu of a question's engines: 'auto', then a tick each.
refresh()[source]
Every row anew (the solvers ticked changed, an engine became
available).
select(key)[source]
A question, or the first question (an asked one first) a run
answers.
set_answered(answered)[source]
When each question was last answered: {question: (label, folder)}
of the config's newest run that did (the window's Runs page).
set_solver_boxes(boxes)[source]
The solvers' tick boxes ({name: QCheckBox}, 'auto' among them): the
RF rows show and set them.
state(key)[source]
A run's state as it was set.