User Interface¶
Configurator¶
- neuroarcade.ui.configurator.clear_layout(layout: QFormLayout)¶
Clears the elements in the passed layout.
- Parameters:
layout (QFormLayout) – Form layout to clear.
- neuroarcade.ui.configurator.read_config(box_widget: QWidget) dict¶
Reads the values of the parameters in a parameters box.
- Parameters:
box_widget (QWidget) – Widget containing the parameters widgets.
- Returns:
Dictionary mapping the name of the parameter and its value.
- Return type:
dict
- neuroarcade.ui.configurator.update_box_options(schema: dict, box_widget: QWidget, set_function=None)¶
Dynamically populate a Qt box with config options from schema using a QFormLayout.
- Parameters:
schema (dict) – Config schema for the parameters in the box.
box_widget (QWidget) – Box that will contain the parameters.
set_function (Callable, optional) – Function to call when pressing the Set options button. Defaults to None.
- neuroarcade.ui.configurator.widget_from_default(param_name: str, spec: dict) tuple[QLabel, QWidget]¶
Creates a label and a widget for a specific parameter. The parameter data is obtained from the spec variable. A widget is created according to the type of the default value of the parameter.
- Parameters:
param_name (str) – Name of the parameter to show in the UI
spec (dict) – Dictionary with the data of the parameter.
- Returns:
Label widget and input widget for the parameter.
- Return type:
tuple[QLabel, QWidget]
Instructions Window¶
- class neuroarcade.ui.InstructionsWindow.InstructionsWindow(html_text: str, parent=None)¶
Bases:
QDialog