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.
- 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.
The menu of a question's engines: 'auto', then a tick each.
- 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).