menus.params_editor
Classes
Widget for editing SolverParams. |
Module Contents
- class menus.params_editor.EditableParam(param_name: str, solver_params: motile_plugin.motile.backend.SolverParams, negative: bool = False)
Bases:
qtpy.QtWidgets.QWidget
- param_name
- dtype
- title
- negative
- param_label
- param_value
- _param_label_widget() → qtpy.QtWidgets.QLabel
- update_from_params(params: motile_plugin.motile.backend.SolverParams)
- class menus.params_editor.OptionalEditableParam(param_name: str, solver_params: motile_plugin.motile.backend.SolverParams, negative: bool = False)
Bases:
EditableParam
- _param_label_widget() → qtpy.QtWidgets.QCheckBox
- update_from_params(params: motile_plugin.motile.backend.SolverParams)
- toggle_enable(checked: bool)
- toggle_visible(visible: bool)
- class menus.params_editor.SolverParamsEditor
Bases:
qtpy.QtWidgets.QWidget
Widget for editing SolverParams. Spinboxes will be created for each parameter in SolverParams and linked such that editing the value in the spinbox will change the corresponding parameter. Checkboxes will also be created for each optional parameter (group) and linked such that unchecking the box will update the parameter value to None, and checking will update the parameter to the current spinbox value. To update for a backend change to SolverParams, emit the new_params signal, which the spinboxes and checkboxes will connect to and use to update the UI and thus the stored solver params.
- new_params
- solver_params
- param_categories
- iou_row: OptionalEditableParam
- _params_group(title: str, param_category: str, negative: bool) → qtpy.QtWidgets.QWidget