subject

Classes:

New_Subject_Wizard(self, /[, parent, f, ...])

A popup that prompts you to define variables for a new subject.Subject object

class New_Subject_Wizard(self, /, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags), *, sizeGripEnabled: bool | None = None, modal: bool | None = None)[source]

Bases: QDialog

A popup that prompts you to define variables for a new subject.Subject object

Called by Control_Panel.create_subject() , which handles actually creating the subject file and updating the Terminal.pilots dict 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:
  • protocol_dir (str) – A full path to where protocols are stored, received from prefs.get('PROTOCOLDIR')

  • bio_tab (Biography_Tab) – Sub-object to set and store biographical variables

  • task_tab (Task_Tab) – Sub-object to set and store protocol and step assignment

Initialize self. See help(type(self)) for accurate signature.

Classes:

Task_Tab(self, /[, parent, f, modal, ...])

A tab for selecting a task and step to assign to the subject.

Attributes:

staticMetaObject

class Task_Tab(self, /, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags), *, modal: bool | None = None, windowModality: PySide6.QtCore.Qt.WindowModality | None = None, enabled: bool | None = None, geometry: PySide6.QtCore.QRect | None = None, frameGeometry: PySide6.QtCore.QRect | None = None, normalGeometry: PySide6.QtCore.QRect | None = None, x: int | None = None, y: int | None = None, pos: PySide6.QtCore.QPoint | None = None, frameSize: PySide6.QtCore.QSize | None = None, size: PySide6.QtCore.QSize | None = None, width: int | None = None, height: int | None = None, rect: PySide6.QtCore.QRect | None = None, childrenRect: PySide6.QtCore.QRect | None = None, childrenRegion: PySide6.QtGui.QRegion | None = None, sizePolicy: PySide6.QtWidgets.QSizePolicy | None = None, minimumSize: PySide6.QtCore.QSize | None = None, maximumSize: PySide6.QtCore.QSize | None = None, minimumWidth: int | None = None, minimumHeight: int | None = None, maximumWidth: int | None = None, maximumHeight: int | None = None, sizeIncrement: PySide6.QtCore.QSize | None = None, baseSize: PySide6.QtCore.QSize | None = None, palette: PySide6.QtGui.QPalette | None = None, font: PySide6.QtGui.QFont | None = None, cursor: PySide6.QtGui.QCursor | None = None, mouseTracking: bool | None = None, tabletTracking: bool | None = None, isActiveWindow: bool | None = None, focusPolicy: PySide6.QtCore.Qt.FocusPolicy | None = None, focus: bool | None = None, contextMenuPolicy: PySide6.QtCore.Qt.ContextMenuPolicy | None = None, updatesEnabled: bool | None = None, visible: bool | None = None, minimized: bool | None = None, maximized: bool | None = None, fullScreen: bool | None = None, sizeHint: PySide6.QtCore.QSize | None = None, minimumSizeHint: PySide6.QtCore.QSize | None = None, acceptDrops: bool | None = None, windowTitle: str | None = None, windowIcon: PySide6.QtGui.QIcon | None = None, windowIconText: str | None = None, windowOpacity: float | None = None, windowModified: bool | None = None, toolTip: str | None = None, toolTipDuration: int | None = None, statusTip: str | None = None, whatsThis: str | None = None, accessibleName: str | None = None, accessibleDescription: str | None = None, layoutDirection: PySide6.QtCore.Qt.LayoutDirection | None = None, autoFillBackground: bool | None = None, styleSheet: str | None = None, locale: PySide6.QtCore.QLocale | None = None, windowFilePath: str | None = None, inputMethodHints: PySide6.QtCore.Qt.InputMethodHint | None = None)[source]

Bases: QWidget

A 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:
  • protocol (str) – the name of the assigned protocol, filename without .json extension

  • step (int) – current step to assign.

Initialize self. See help(type(self)) for accurate signature.

Methods:

update_step_box()

Clears any steps that might be in the step selection box, loads the protocol file and repopulates it.

protocol_changed()

When the protocol is changed, save the value and call update_step_box().

step_changed()

When the step is changed, save it.

Attributes:

staticMetaObject

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().

step_changed()[source]

When the step is changed, save it.

staticMetaObject = PySide6.QtCore.QMetaObject("Task_Tab" inherits "QWidget": )
staticMetaObject = PySide6.QtCore.QMetaObject("New_Subject_Wizard" inherits "QDialog": )