kicad2ems.gui.optionrow¶
One option's field in a settings form, from its Option (kicad2ems.core.options):
the S-parameter run's form (SetupTab: kicad2ems's and the solvers' options) and
an analysis's (AnalysisPanel) both build theirs here.
w = field(o, changed) # its widget; changed: called on an edit
value(w), set_value(w, v) # its tick, text or choice
- kicad2ems.gui.optionrow.field(o, changed, text='', lines=False, default=False, hint='')[source]¶
o's widget, `changed` connected to its edits: a check box (text beside it), a drop-down of its choices, a box of lines (lines: a list's) or a line (hint: its placeholder). default: the drop-down's first item is the option's default ('(default)', or 'X (default)'), the others the rest; else its choices, NONE first where it may be unset.
- kicad2ems.gui.optionrow.kind(o)[source]¶
The field of an option: 'file', 'dir', 'bool', 'float', 'int', 'list', 'str', or a tuple of choices ('' first when it may be unset).