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), *, sizeGripEnabled: bool | None = None, modal: bool | None = None)[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, modal, ...])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), *, 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:
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": )