subject
Classes:
|
A popup that prompts you to define variables for a new |
- class New_Subject_Wizard(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))[source]
Bases:
QDialogA popup that prompts you to define variables for a new
subject.SubjectobjectCalled by
Control_Panel.create_subject(), which handles actually creating the subject file and updating theTerminal.pilotsdict and file.Contains two tabs -
Biography_Tab- to set basic biographical information about a subject -Task_Tab- to set the protocol and step to start the subject on- Variables:
Initialize self. See help(type(self)) for accurate signature.
Classes:
Task_Tab(self[, parent, f])A tab for selecting a task and step to assign to the subject.
Attributes:
- class Task_Tab(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))[source]
Bases:
QWidgetA tab for selecting a task and step to assign to the subject.
Reads available tasks from prefs.get(‘PROTOCOLDIR’) , lists them, and creates a spinbox to select from the available steps.
Warning
Like
Biography_Tab, these are not the actual instance attributes. Values are stored in a values dictionary.- Variables:
Initialize self. See help(type(self)) for accurate signature.
Methods:
Clears any steps that might be in the step selection box, loads the protocol file and repopulates it.
When the protocol is changed, save the value and call
update_step_box().When the step is changed, save it.
Attributes:
- update_step_box()[source]
Clears any steps that might be in the step selection box, loads the protocol file and repopulates it.
- protocol_changed()[source]
When the protocol is changed, save the value and call
update_step_box().
- staticMetaObject = PySide6.QtCore.QMetaObject("Task_Tab" inherits "QWidget": )
- staticMetaObject = PySide6.QtCore.QMetaObject("New_Subject_Wizard" inherits "QDialog": )