populse_mia.user_interface.pop_ups¶
Module that defines all the pop-ups used across the Mia software.
- Contains:
- Class:
ClickableLabel
DefaultValueListCreation
DefaultValueQLineEdit
PopUpAddPath
PopUpAddTag
PopUpCloneTag
PopUpClosePipeline
PopUpDataBrowserCurrentSelection
PopUpDeletedProject
PopUpDeleteProject
PopUpFilterSelection
PopUpInformation
PopUpInheritanceDict
PopUpMultipleSort
PopUpNewProject
PopUpOpenProject
PopUpPreferences
PopUpProperties
PopUpQuit
PopUpRemoveScan
PopUpRemoveTag
PopUpSaveProjectAs
PopUpSeeAllProjects
PopUpSelectFilter
PopUpSelectIteration
PopUpTagSelection (must precede PopUpSelectTag)
PopUpSelectTag
PopUpSelectTagCountTable
PopUpShowHistory
PopUpVisualizedTags
QLabel_clickable
Classes
A QLabel subclass that emits a signal when clicked. |
|
|
A dialog for creating or editing a list's default value. |
|
A QLineEdit override for handling default values. |
|
Dialog for adding a document to the project without using the MRI Files Manager (File > Import). |
|
Dialog for adding a new tag to the project. |
|
Dialog for cloning an existing tag with a new name. |
|
Dialog displayed when closing a modified pipeline editor. |
|
Dialog to display and confirm the current data browser selection. |
|
Dialog for deleting selected projects. |
|
Message box that displays a list of deleted, renamed, or moved projects. |
|
Dialog for selecting a previously saved filter. |
|
Popup window displaying the current project's information. |
|
Dialog for selecting tag inheritance between input and output plugs. |
|
Dialog for sorting the data browser's table based on multiple tags. |
Dialog for creating a new project. |
|
Dialog for opening an existing MIA project. |
|
|
Dialog for changing software preferences. |
|
Dialog for modifying project properties. |
|
Dialog to handle unsaved project modifications when closing the software. |
|
Dialog to confirm removal of a scan previously sent to the pipeline manager. |
|
Dialog for removing user-defined tags from a Populse MIA project. |
Dialog for saving a project under a new name. |
|
|
A dialog window for displaying and managing saved projects. |
|
Popup window for selecting and opening a previously saved filter. |
|
Dialog allowing the user to choose which values of a tag should be used during an iterated pipeline run. |
|
A dialog for selecting and updating the thumbnail tag in the mini viewer. |
|
A pop-up dialog for selecting a tag from a count table. |
|
A dialog for displaying the history of a document in a software pipeline. |
|
A dialog for selecting and filtering tags in a data browser. |
|
A widget for managing tag visualization preferences in a project. |
|
A custom QLabel that emits a clicked signal when mouse pressed. |
- class populse_mia.user_interface.pop_ups.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])¶
Bases:
dateThe year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints.
- astimezone()¶
tz -> convert to local time in new timezone tz
- combine()¶
date, time -> datetime with same date and time fields
- ctime()¶
Return ctime() style string.
- date()¶
Return date object with same year, month and day.
- dst()¶
Return self.tzinfo.dst(self).
- fold¶
- fromisoformat()¶
string -> datetime from a string in most ISO 8601 formats
- fromtimestamp()¶
timestamp[, tz] -> tz’s local time from POSIX timestamp.
- hour¶
- isoformat()¶
[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM]. sep is used to separate the year from the time, and defaults to ‘T’. The optional argument timespec specifies the number of additional terms of the time to include. Valid options are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’ and ‘microseconds’.
- max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)¶
- microsecond¶
- min = datetime.datetime(1, 1, 1, 0, 0)¶
- minute¶
- now()¶
Returns new datetime object representing current time local to tz.
- tz
Timezone object.
If no tz is specified, uses local timezone.
- replace()¶
Return datetime with new specified fields.
- resolution = datetime.timedelta(microseconds=1)¶
- second¶
- strptime()¶
string, format -> new datetime parsed from a string (like time.strptime()).
- time()¶
Return time object with same time but with tzinfo=None.
- timestamp()¶
Return POSIX timestamp as float.
- timetuple()¶
Return time tuple, compatible with time.localtime().
- timetz()¶
Return time object with same time and tzinfo.
- tzinfo¶
- tzname()¶
Return self.tzinfo.tzname(self).
- utcfromtimestamp()¶
Construct a naive UTC datetime from a POSIX timestamp.
- utcnow()¶
Return a new datetime representing UTC day and time.
- utcoffset()¶
Return self.tzinfo.utcoffset(self).
- utctimetuple()¶
Return UTC time tuple, compatible with time.localtime().
- class populse_mia.user_interface.pop_ups.partial[source]¶
Bases:
objectpartial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.
- args¶
tuple of arguments to future partial calls
- func¶
function object to use in future partial calls
- keywords¶
dictionary of keyword arguments to future partial calls
- populse_mia.user_interface.pop_ups.get_origin(tp)[source]¶
Get the unsubscripted version of a type.
This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar, Annotated, and others. Return None for unsupported types.
Examples:
>>> P = ParamSpec('P') >>> assert get_origin(Literal[42]) is Literal >>> assert get_origin(int) is None >>> assert get_origin(ClassVar[int]) is ClassVar >>> assert get_origin(Generic) is Generic >>> assert get_origin(Generic[T]) is Generic >>> assert get_origin(Union[T, int]) is Union >>> assert get_origin(List[Tuple[T, T]][int]) is list >>> assert get_origin(P.args) is P
- populse_mia.user_interface.pop_ups.capsul_engine(database_location=None, require=None)[source]¶
User factory for creating capsul engines.
If no database_location is given, it will default to an internal (in- memory) database with no persistent settings or history values.
Configuration is read from a dictionary stored in two database entries. The first entry has the key ‘global_config’ (i.e. database.json_value(‘global_config’)), it contains the configuration values that are shared by all processing engines. The second entry is computing_config`. It contains a dictionary with one item per computing resource where the key is the resource name and the value is configuration values that are specific to this computing resource.
Before initialization of the CapsulEngine, modules are loaded. The list of loaded modules is searched in the ‘modules’ value in the database (i.e. in database.json_value(‘modules’)) ; if no list is defined in the database, capsul.module.default_modules is used.
- class populse_mia.user_interface.pop_ups.PipelineNode(pipeline, name, process, **kwargs)[source]¶
Bases:
ProcessNodeA special node to store the pipeline user-parameters
- get_connections_through(plug_name, single=False)[source]¶
If the node has internal links (inside a pipeline, or in a switch or other custom connection node), return the “other side” of the internal connection to the selected plug. The returned plug may be in an internal node (in a pipeline), or in an external node connected to the node. When the node is “opaque” (no internal connections), it returns the input plug. When the node is inactive / disabled, it returns [].
- Parameters:
- Returns:
[(node, plug_name, plug), …] Returns [(self, plug_name, plug)] when the plug has no internal connection.
- Return type:
connected_plug; list of tuples
- class populse_mia.user_interface.pop_ups.PipelineDeveloperView(pipeline=None, parent=None, show_sub_pipelines=False, allow_open_controller=False, logical_view=False, enable_edition=False, userlevel=0)[source]¶
Bases:
QGraphicsViewPipeline representation as a graph, using boxes and arrows.
Based on Qt QGraphicsView, this can be used as a Qt QWidget.
Qt signals are emitted on a right click on a node box, and on a double click on a sub-pipeline box, to allow handling at a higher level. Default behaviors can be enabled using constructor parameters.
Ctrl + double click opens sub-pipelines in embedded views inside their parent box.
- subpipeline_clicked¶
- node_right_clicked¶
- process_clicked¶
- node_clicked¶
- node_clicked_ctrl¶
- plug_clicked¶
- plug_right_clicked¶
- link_right_clicked¶
- colored_parameters¶
- scene¶
- subpipeline_clicked¶
Signal emitted when a sub pipeline has to be open.
- process_clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- node_clicked¶
Signal emitted when a node box has to be open.
- node_clicked_ctrl¶
Signal emitted when a node box has to be in the foreground.
- switch_clicked¶
Signal emitted when a switch box has to be open.
- node_right_clicked¶
Signal emitted when a node box is right-clicked
- plug_clicked¶
Signal emitted when a plug is clicked
- plug_right_clicked¶
Signal emitted when a plug is right-clicked
- link_right_clicked¶
Signal emitted when a link is right-clicked
- edit_sub_pipeline¶
Signal emitted when a sub-pipeline has to be edited
- open_filter¶
Signal emitted when an Input Filter has to be opened
- export_to_db_scans¶
Signal emitted when an Input Filter has to be linked to database_scans
- link_keydelete_clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- node_keydelete_clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class ProcessNameEdit(parent=None, class_type_check=<function is_process>)[source]¶
Bases:
QLineEditA specialized QLineEdit with completion for process name
- __init__(pipeline=None, parent=None, show_sub_pipelines=False, allow_open_controller=False, logical_view=False, enable_edition=False, userlevel=0)[source]¶
PipelineDeveloperView
- Parameters:
pipeline (Pipeline (optional)) – pipeline object to be displayed If omitted an empty pipeline will be used, and edition mode will be activated.
parent (QWidget (optional)) – parent widget
show_sub_pipelines (bool (optional)) – if set, sub-pipelines will appear as red/pink boxes and a double click on one of them will open another window with the sub-pipeline structure in it
allow_open_controller (bool (optional)) – if set, a right click on any box will open another window with the underlying node controller, allowing to see and edit parameters values, switches states, etc.
logical_view (bool (optional)) – if set, plugs and links between plugs are hidden, only links between nodes are displayed.
enable_edition (bool (optional)) – if set, pipeline edition features are available in GUI and menus: adding process boxes, drawing links etc. If pipeline is not specified, then edition will be activated anyway.
- colored_parameters = True¶
If enabled (default), parameters in nodes boxes are displayed with color codes representing their state, and the state of their values: output parameters, empty values, existing files, non-existing files…
When colored_parameters is set, however, callbacks have to be installed to track changes in traits values, so this actually has an overhead. When colored_parameters is used, the color code is as follows:
black pamameter name: input
red parameter name: output
italics parameter name: Undefined, None, or empty string value
bold parameter name: existing file or directory name
regular font parameter name: non-existing file, or non-file parameter type
black plug: mandatory
green plug: optional
grey plug: mandatory, inactive
light green plug: optional, inactive
grey link: inactive
orange link: active
dotted line link: weak link
- property userlevel¶
- release_pipeline(delete=False)[source]¶
Releases the pipeline currently viewed (and remove the callbacks)
If
deleteis set, this means the view is within deletion process and a new scene should not be built
- is_logical_view()[source]¶
in logical view mode, plugs and links between plugs are hidden, only links between nodes are displayed.
- set_logical_view(state)[source]¶
in logical view mode, plugs and links between plugs are hidden, only links between nodes are displayed.
- Parameters:
state (bool (mandatory)) – to set/unset the logical view mode
- set_enable_edition(state=True)[source]¶
Set the editable state. Edition allows to modify a pipeline: adding / removing process boxes and switches, drawing links, etc.
- set_restricted_edition_mode(enabled)[source]¶
Set the restricted edition mode. In restricted mode, some background menu actions (“add process”, “open node controller”…) are not available.
- Parameters:
enabled (bool)
- dragEnterEvent(event)[source]¶
Event handler when the mouse enters the widget.
- Parameters:
event – event
- dragMoveEvent(event)[source]¶
Event handler when the mouse moves in the widget.
- Parameters:
event – event
- dropEvent(event)[source]¶
Event handler when something is dropped in the widget.
- Parameters:
event – event
- drop_process(path)[source]¶
Find the dropped process in the system’s paths.
- Parameters:
path – class’s path (e.g. “nipype.interfaces.spm.Smooth”) (str)
- add_embedded_subpipeline(subpipeline_name, scale=None)[source]¶
Adds an embedded sub-pipeline inside its parent node.
- onLoadSubPipelineClicked(node_name, sub_pipeline, modifiers)[source]¶
Event to load a open a sub-pipeline view. If ctrl is pressed the new view will be embedded in its parent node box.
- window()[source]¶
window() is overloaded from QWidget.window() to handle embedded views cases. A PipelineDeveloperView may be displayed inside a NodeGWidget. In this case, we want to go up to the parent scene’s window to the “real” top window, where QWidget.window() will end in the current graphics scene.
- onOpenProcessController(node_name, process)[source]¶
Event to open a sub-process/sub-pipeline controller
right-click popup menu for nodes
Open the right-click menu when triggered from the pipeline background.
- auto_dot_node_positions()[source]¶
Calculate pipeline nodes positions using graphviz/dot, and place the pipeline view nodes accordingly.
- _read_dot_pos(filename)[source]¶
Read the nodes positions from a file generated by graphviz/dot, in “plain” text format.
- Returns:
nodes_pos – keys are nodes IDs (names), and values are 2D positions
- Return type:
- save_dot_image_ui()[source]¶
Ask for a filename using the file dialog, and save a graphviz/dot representation of the pipeline. The pipeline representation follows the current visualization mode (“regular” or “logical” with smaller boxes) with one link of a given type (active, weak) between two given boxes: all parameters are not represented.
- reset_initial_nodes_positions()[source]¶
Set each pipeline node to its “saved” position, ie the one which may be found in the “node_position” variable of the pipeline.
- class ProcessModuleInput(display_str='process module/name', class_type_check=<function is_process>)[source]¶
Bases:
QDialog
- add_process()[source]¶
Insert a process node in the pipeline. Asks for the process module/name, and the node name before inserting.
- add_node()[source]¶
Insert a custom node in the pipeline. Asks for the node module/name, and the node name before inserting.
- class IterativeProcessInput(engine)[source]¶
Bases:
ProcessModuleInput
- add_iterative_process()[source]¶
Insert an iterative process node in the pipeline. Asks for the process module/name, the node name, and iterative plugs before inserting.
- add_switch()[source]¶
Insert a switch node in the pipeline. Asks for the switch inputs/outputs, and the node name before inserting.
- add_optional_output_switch()[source]¶
Insert an optional output switch node in the pipeline. Asks for the switch inputs/outputs, and the node name before inserting.
- save_pipeline()[source]¶
Ask for a filename using the file dialog, and save the pipeline as a XML, JSON or python file.
- class populse_mia.user_interface.pop_ups.SettingsEditor(engine, parent=None)[source]¶
Bases:
QDialog
- class populse_mia.user_interface.pop_ups.QAbstractItemView(parent: QWidget | None = None)¶
Bases:
QAbstractScrollArea- AboveItem = 1¶
- AllEditTriggers = 31¶
- AnimatingState = 6¶
- AnyKeyPressed = 16¶
- BelowItem = 2¶
- CollapsingState = 5¶
- ContiguousSelection = 4¶
- CurrentChanged = 1¶
- DoubleClicked = 2¶
- DragDrop = 3¶
- DragOnly = 1¶
- DragSelectingState = 2¶
- DraggingState = 1¶
- DropOnly = 2¶
- EditKeyPressed = 8¶
- class EditTriggers¶
- class EditTriggers(f: QAbstractItemView.EditTriggers | QAbstractItemView.EditTrigger)
- class EditTriggers(a0: QAbstractItemView.EditTriggers)
Bases:
simplewrapper
- EditingState = 3¶
- EnsureVisible = 0¶
- ExpandingState = 4¶
- ExtendedSelection = 3¶
- InternalMove = 4¶
- MoveDown = 1¶
- MoveEnd = 5¶
- MoveHome = 4¶
- MoveLeft = 2¶
- MoveNext = 8¶
- MovePageDown = 7¶
- MovePageUp = 6¶
- MovePrevious = 9¶
- MoveRight = 3¶
- MoveUp = 0¶
- MultiSelection = 2¶
- NoDragDrop = 0¶
- NoEditTriggers = 0¶
- NoSelection = 0¶
- NoState = 0¶
- OnItem = 0¶
- OnViewport = 3¶
- PositionAtBottom = 2¶
- PositionAtCenter = 3¶
- PositionAtTop = 1¶
- ScrollPerItem = 0¶
- ScrollPerPixel = 1¶
- SelectColumns = 2¶
- SelectItems = 0¶
- SelectRows = 1¶
- SelectedClicked = 4¶
- SingleSelection = 1¶
- activated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- clearSelection(self)¶
- clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- closePersistentEditor(self, index: QModelIndex)¶
- currentChanged(self, current: QModelIndex, previous: QModelIndex)¶
- currentIndex(self) QModelIndex¶
- dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: Iterable[int] = [])¶
- defaultDropAction(self) Qt.DropAction¶
- doubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- dragDropMode(self) QAbstractItemView.DragDropMode¶
- dropIndicatorPosition(self) QAbstractItemView.DropIndicatorPosition¶
- edit(self, index: QModelIndex)¶
- edit(self, index: QModelIndex, trigger: QAbstractItemView.EditTrigger, event: QEvent | None) bool
- editTriggers(self) QAbstractItemView.EditTriggers¶
- entered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- executeDelayedItemsLayout(self)¶
- horizontalScrollMode(self) QAbstractItemView.ScrollMode¶
- iconSize(self) QSize¶
- iconSizeChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- indexAt(self, p: QPoint) QModelIndex¶
- indexWidget(self, index: QModelIndex) QWidget | None¶
- inputMethodQuery(self, query: Qt.InputMethodQuery) Any¶
- isIndexHidden(self, index: QModelIndex) bool¶
- isPersistentEditorOpen(self, index: QModelIndex) bool¶
- itemDelegate(self) QAbstractItemDelegate | None¶
- itemDelegate(self, index: QModelIndex) QAbstractItemDelegate | None
- model(self) QAbstractItemModel | None¶
- moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: Qt.KeyboardModifiers | Qt.KeyboardModifier) QModelIndex¶
- openPersistentEditor(self, index: QModelIndex)¶
- pressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- reset(self)¶
- resetHorizontalScrollMode(self)¶
- resetVerticalScrollMode(self)¶
- rootIndex(self) QModelIndex¶
- rowsAboutToBeRemoved(self, parent: QModelIndex, start: int, end: int)¶
- rowsInserted(self, parent: QModelIndex, start: int, end: int)¶
- scheduleDelayedItemsLayout(self)¶
- scrollTo(self, index: QModelIndex, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)¶
- scrollToBottom(self)¶
- scrollToTop(self)¶
- selectAll(self)¶
- selectedIndexes(self) List[QModelIndex]¶
- selectionBehavior(self) QAbstractItemView.SelectionBehavior¶
- selectionChanged(self, selected: QItemSelection, deselected: QItemSelection)¶
- selectionCommand(self, index: QModelIndex, event: QEvent | None = None) QItemSelectionModel.SelectionFlags¶
- selectionMode(self) QAbstractItemView.SelectionMode¶
- selectionModel(self) QItemSelectionModel | None¶
- setCurrentIndex(self, index: QModelIndex)¶
- setDefaultDropAction(self, dropAction: Qt.DropAction)¶
- setDirtyRegion(self, region: QRegion)¶
- setDragDropMode(self, behavior: QAbstractItemView.DragDropMode)¶
- setEditTriggers(self, triggers: QAbstractItemView.EditTriggers | QAbstractItemView.EditTrigger)¶
- setHorizontalScrollMode(self, mode: QAbstractItemView.ScrollMode)¶
- setIconSize(self, size: QSize)¶
- setIndexWidget(self, index: QModelIndex, widget: QWidget | None)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setRootIndex(self, index: QModelIndex)¶
- setSelection(self, rect: QRect, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag)¶
- setSelectionBehavior(self, behavior: QAbstractItemView.SelectionBehavior)¶
- setSelectionMode(self, mode: QAbstractItemView.SelectionMode)¶
- setSelectionModel(self, selectionModel: QItemSelectionModel | None)¶
- setState(self, state: QAbstractItemView.State)¶
- setTextElideMode(self, mode: Qt.TextElideMode)¶
- setVerticalScrollMode(self, mode: QAbstractItemView.ScrollMode)¶
- sizeHintForIndex(self, index: QModelIndex) QSize¶
- startDrag(self, supportedActions: Qt.DropActions | Qt.DropAction)¶
- state(self) QAbstractItemView.State¶
- textElideMode(self) Qt.TextElideMode¶
- update(self)¶
- update(self, index: QModelIndex) None
- updateEditorData(self)¶
- updateEditorGeometries(self)¶
- updateGeometries(self)¶
- verticalScrollMode(self) QAbstractItemView.ScrollMode¶
- viewOptions(self) QStyleOptionViewItem¶
- viewportEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- viewportSizeHint(self) QSize¶
- visualRect(self, index: QModelIndex) QRect¶
- visualRegionForSelection(self, selection: QItemSelection) QRegion¶
- class populse_mia.user_interface.pop_ups.QApplication(argv: List[str])¶
Bases:
QGuiApplication- CustomColor = 1¶
- ManyColor = 2¶
- NormalColor = 0¶
- aboutQt()¶
- beep()¶
- closeAllWindows()¶
- focusChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- fontMetrics() QFontMetrics¶
- globalStrut() QSize¶
- isEffectEnabled(a0: Qt.UIEffect) bool¶
- setEffectEnabled(a0: Qt.UIEffect, enabled: bool = True)¶
- setGlobalStrut(a0: QSize)¶
- class populse_mia.user_interface.pop_ups.QCheckBox(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QCheckBox(text: str | None, parent: QWidget | None = None)
Bases:
QAbstractButton- checkState(self) Qt.CheckState¶
- checkStateSet(self)¶
- minimumSizeHint(self) QSize¶
- nextCheckState(self)¶
- setCheckState(self, state: Qt.CheckState)¶
- sizeHint(self) QSize¶
- stateChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.QComboBox(parent: QWidget | None = None)¶
Bases:
QWidget- AdjustToContents = 0¶
- AdjustToContentsOnFirstShow = 1¶
- AdjustToMinimumContentsLength = 2¶
- AdjustToMinimumContentsLengthWithIcon = 3¶
- InsertAfterCurrent = 4¶
- InsertAlphabetically = 6¶
- InsertAtBottom = 3¶
- InsertAtCurrent = 2¶
- InsertAtTop = 1¶
- InsertBeforeCurrent = 5¶
- NoInsert = 0¶
- activated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- addItem(self, text: str | None, userData: Any = None)¶
- addItem(self, icon: QIcon, text: str | None, userData: Any = None) None
- clear(self)¶
- clearEditText(self)¶
- currentIndexChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- currentTextChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- editTextChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- findData(self, data: Any, role: int = Qt.UserRole, flags: Qt.MatchFlags | Qt.MatchFlag = Qt.MatchExactly | Qt.MatchCaseSensitive) int¶
- findText(self, text: str | None, flags: Qt.MatchFlags | Qt.MatchFlag = Qt.MatchExactly | Qt.MatchCaseSensitive) int¶
- hidePopup(self)¶
- highlighted¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- iconSize(self) QSize¶
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any¶
- inputMethodQuery(self, query: Qt.InputMethodQuery, argument: Any) Any
- insertItem(self, index: int, text: str | None, userData: Any = None)¶
- insertItem(self, index: int, icon: QIcon, text: str | None, userData: Any = None) None
- insertPolicy(self) QComboBox.InsertPolicy¶
- minimumSizeHint(self) QSize¶
- model(self) QAbstractItemModel | None¶
- rootModelIndex(self) QModelIndex¶
- setIconSize(self, size: QSize)¶
- setInsertPolicy(self, policy: QComboBox.InsertPolicy)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setRootModelIndex(self, index: QModelIndex)¶
- setSizeAdjustPolicy(self, policy: QComboBox.SizeAdjustPolicy)¶
- setView(self, itemView: QAbstractItemView | None)¶
- showPopup(self)¶
- sizeAdjustPolicy(self) QComboBox.SizeAdjustPolicy¶
- sizeHint(self) QSize¶
- textActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- textHighlighted¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- view(self) QAbstractItemView | None¶
- class populse_mia.user_interface.pop_ups.QDialog(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
Bases:
QWidget- Accepted = 1¶
- Rejected = 0¶
- accept(self)¶
- accepted¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- finished¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- minimumSizeHint(self) QSize¶
- open(self)¶
- reject(self)¶
- rejected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sizeHint(self) QSize¶
- class populse_mia.user_interface.pop_ups.QDialogButtonBox(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QDialogButtonBox(orientation: Qt.Orientation, parent: QWidget | None = None)
- class populse_mia.user_interface.pop_ups.QDialogButtonBox(buttons: QDialogButtonBox.StandardButtons | QDialogButtonBox.StandardButton, parent: QWidget | None = None)
- class populse_mia.user_interface.pop_ups.QDialogButtonBox(buttons: QDialogButtonBox.StandardButtons | QDialogButtonBox.StandardButton, orientation: Qt.Orientation, parent: QWidget | None = None)
Bases:
QWidget- Abort = 262144¶
- AcceptRole = 0¶
- ActionRole = 3¶
- AndroidLayout = 5¶
- Apply = 33554432¶
- ApplyRole = 8¶
- Cancel = 4194304¶
- Close = 2097152¶
- DestructiveRole = 2¶
- Discard = 8388608¶
- GnomeLayout = 3¶
- Help = 16777216¶
- HelpRole = 4¶
- Ignore = 1048576¶
- InvalidRole = -1¶
- KdeLayout = 2¶
- MacLayout = 1¶
- No = 65536¶
- NoButton = 0¶
- NoRole = 6¶
- NoToAll = 131072¶
- Ok = 1024¶
- Open = 8192¶
- RejectRole = 1¶
- Reset = 67108864¶
- ResetRole = 7¶
- RestoreDefaults = 134217728¶
- Retry = 524288¶
- Save = 2048¶
- SaveAll = 4096¶
- class StandardButtons¶
- class StandardButtons(f: QDialogButtonBox.StandardButtons | QDialogButtonBox.StandardButton)
- class StandardButtons(a0: QDialogButtonBox.StandardButtons)
Bases:
simplewrapper
- WinLayout = 0¶
- Yes = 16384¶
- YesRole = 5¶
- YesToAll = 32768¶
- accepted¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- addButton(self, button: QAbstractButton | None, role: QDialogButtonBox.ButtonRole)¶
- addButton(self, text: str | None, role: QDialogButtonBox.ButtonRole) QPushButton | None
- addButton(self, button: QDialogButtonBox.StandardButton) QPushButton | None
- button(self, which: QDialogButtonBox.StandardButton) QPushButton | None¶
- buttonRole(self, button: QAbstractButton | None) QDialogButtonBox.ButtonRole¶
- clear(self)¶
- clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- helpRequested¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- orientation(self) Qt.Orientation¶
- rejected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- setOrientation(self, orientation: Qt.Orientation)¶
- setStandardButtons(self, buttons: QDialogButtonBox.StandardButtons | QDialogButtonBox.StandardButton)¶
- standardButton(self, button: QAbstractButton | None) QDialogButtonBox.StandardButton¶
- standardButtons(self) QDialogButtonBox.StandardButtons¶
- class populse_mia.user_interface.pop_ups.QFileDialog(parent: QWidget | None, f: Qt.WindowFlags | Qt.WindowType)¶
- class populse_mia.user_interface.pop_ups.QFileDialog(parent: QWidget | None = None, caption: str | None = '', directory: str | None = '', filter: str | None = '')
Bases:
QDialog- Accept = 3¶
- AcceptOpen = 0¶
- AcceptSave = 1¶
- AnyFile = 0¶
- Detail = 0¶
- Directory = 2¶
- DirectoryOnly = 4¶
- DontConfirmOverwrite = 4¶
- DontResolveSymlinks = 2¶
- DontUseCustomDirectoryIcons = 128¶
- DontUseNativeDialog = 16¶
- DontUseSheet = 8¶
- ExistingFile = 1¶
- ExistingFiles = 3¶
- FileName = 1¶
- FileType = 2¶
- HideNameFilterDetails = 64¶
- List = 1¶
- LookIn = 0¶
- class Options¶
- class Options(f: QFileDialog.Options | QFileDialog.Option)
- class Options(a0: QFileDialog.Options)
Bases:
simplewrapper
- ReadOnly = 32¶
- Reject = 4¶
- ShowDirsOnly = 1¶
- accept(self)¶
- acceptMode(self) QFileDialog.AcceptMode¶
- currentChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- currentUrlChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- directoryEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- directoryUrl(self) QUrl¶
- directoryUrlEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- fileMode(self) QFileDialog.FileMode¶
- fileSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- filesSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- filter(self) QDir.Filters¶
- filterSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- static getExistingDirectory(parent: QWidget | None = None, caption: str | None = '', directory: str | None = '', options: QFileDialog.Options | QFileDialog.Option = QFileDialog.ShowDirsOnly) str¶
- getExistingDirectoryUrl(parent: QWidget | None = None, caption: str | None = '', directory: QUrl = QUrl(), options: QFileDialog.Options | QFileDialog.Option = QFileDialog.ShowDirsOnly, supportedSchemes: Iterable[str | None] = []) QUrl¶
- static getOpenFileName(parent: QWidget | None = None, caption: str | None = '', directory: str | None = '', filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0) Tuple[str, str]¶
- static getOpenFileNames(parent: QWidget | None = None, caption: str | None = '', directory: str | None = '', filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0) Tuple[List[str], str]¶
- getOpenFileUrl(parent: QWidget | None = None, caption: str | None = '', directory: QUrl = QUrl(), filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0, supportedSchemes: Iterable[str | None] = []) Tuple[QUrl, str]¶
- getOpenFileUrls(parent: QWidget | None = None, caption: str | None = '', directory: QUrl = QUrl(), filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0, supportedSchemes: Iterable[str | None] = []) Tuple[List[QUrl], str]¶
- static getSaveFileName(parent: QWidget | None = None, caption: str | None = '', directory: str | None = '', filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0) Tuple[str, str]¶
- getSaveFileUrl(parent: QWidget | None = None, caption: str | None = '', directory: QUrl = QUrl(), filter: str | None = '', initialFilter: str | None = '', options: QFileDialog.Options | QFileDialog.Option = 0, supportedSchemes: Iterable[str | None] = []) Tuple[QUrl, str]¶
- labelText(self, label: QFileDialog.DialogLabel) str¶
- options(self) QFileDialog.Options¶
- restoreState(self, state: QByteArray | bytes | bytearray) bool¶
- saveState(self) QByteArray¶
- selectUrl(self, url: QUrl)¶
- setAcceptMode(self, mode: QFileDialog.AcceptMode)¶
- setDirectoryUrl(self, directory: QUrl)¶
- setFileMode(self, mode: QFileDialog.FileMode)¶
- setFilter(self, filters: QDir.Filters | QDir.Filter)¶
- setLabelText(self, label: QFileDialog.DialogLabel, text: str | None)¶
- setOption(self, option: QFileDialog.Option, on: bool = True)¶
- setOptions(self, options: QFileDialog.Options | QFileDialog.Option)¶
- setSidebarUrls(self, urls: Iterable[QUrl])¶
- setViewMode(self, mode: QFileDialog.ViewMode)¶
- testOption(self, option: QFileDialog.Option) bool¶
- urlSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- urlsSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- viewMode(self) QFileDialog.ViewMode¶
- class populse_mia.user_interface.pop_ups.QFormLayout(parent: QWidget | None = None)¶
Bases:
QLayout- AllNonFixedFieldsGrow = 2¶
- DontWrapRows = 0¶
- ExpandingFieldsGrow = 1¶
- FieldRole = 1¶
- FieldsStayAtSizeHint = 0¶
- LabelRole = 0¶
- SpanningRole = 2¶
- class TakeRowResult¶
- class TakeRowResult(a0: QFormLayout.TakeRowResult)
Bases:
simplewrapper- fieldItem¶
- labelItem¶
- WrapAllRows = 2¶
- WrapLongRows = 1¶
- addRow(self, label: QWidget | None, field: QWidget | None)¶
- addRow(self, label: QWidget | None, field: QLayout | None) None
- addRow(self, labelText: str | None, field: QWidget | None) None
- addRow(self, labelText: str | None, field: QLayout | None) None
- addRow(self, widget: QWidget | None) None
- addRow(self, layout: QLayout | None) None
- expandingDirections(self) Qt.Orientations¶
- fieldGrowthPolicy(self) QFormLayout.FieldGrowthPolicy¶
- formAlignment(self) Qt.Alignment¶
- insertRow(self, row: int, label: QWidget | None, field: QWidget | None)¶
- insertRow(self, row: int, label: QWidget | None, field: QLayout | None) None
- insertRow(self, row: int, labelText: str | None, field: QWidget | None) None
- insertRow(self, row: int, labelText: str | None, field: QLayout | None) None
- insertRow(self, row: int, widget: QWidget | None) None
- insertRow(self, row: int, layout: QLayout | None) None
- invalidate(self)¶
- itemAt(self, row: int, role: QFormLayout.ItemRole) QLayoutItem | None¶
- itemAt(self, index: int) QLayoutItem | None
- labelAlignment(self) Qt.Alignment¶
- labelForField(self, field: QWidget | None) QWidget | None¶
- labelForField(self, field: QLayout | None) QWidget | None
- minimumSize(self) QSize¶
- removeRow(self, row: int)¶
- removeRow(self, widget: QWidget | None) None
- removeRow(self, layout: QLayout | None) None
- rowWrapPolicy(self) QFormLayout.RowWrapPolicy¶
- setFieldGrowthPolicy(self, policy: QFormLayout.FieldGrowthPolicy)¶
- setFormAlignment(self, alignment: Qt.Alignment | Qt.AlignmentFlag)¶
- setGeometry(self, rect: QRect)¶
- setItem(self, row: int, role: QFormLayout.ItemRole, item: QLayoutItem | None)¶
- setLabelAlignment(self, alignment: Qt.Alignment | Qt.AlignmentFlag)¶
- setLayout(self, row: int, role: QFormLayout.ItemRole, layout: QLayout | None)¶
- setRowWrapPolicy(self, policy: QFormLayout.RowWrapPolicy)¶
- setWidget(self, row: int, role: QFormLayout.ItemRole, widget: QWidget | None)¶
- sizeHint(self) QSize¶
- takeRow(self, row: int) QFormLayout.TakeRowResult¶
- takeRow(self, widget: QWidget | None) QFormLayout.TakeRowResult
- takeRow(self, layout: QLayout | None) QFormLayout.TakeRowResult
- class populse_mia.user_interface.pop_ups.QGroupBox(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QGroupBox(title: str | None, parent: QWidget | None = None)
Bases:
QWidget- alignment(self) Qt.Alignment¶
- clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- minimumSizeHint(self) QSize¶
- toggled¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.QHBoxLayout¶
- class populse_mia.user_interface.pop_ups.QHBoxLayout(parent: QWidget | None)
Bases:
QBoxLayout
- class populse_mia.user_interface.pop_ups.QHeaderView(orientation: Qt.Orientation, parent: QWidget | None = None)¶
Bases:
QAbstractItemView- Custom = 2¶
- Fixed = 2¶
- Interactive = 0¶
- ResizeToContents = 3¶
- Stretch = 1¶
- currentChanged(self, current: QModelIndex, old: QModelIndex)¶
- dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: Iterable[int] = [])¶
- defaultAlignment(self) Qt.Alignment¶
- geometriesChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- headerDataChanged(self, orientation: Qt.Orientation, logicalFirst: int, logicalLast: int)¶
- indexAt(self, p: QPoint) QModelIndex¶
- initialize(self)¶
- isIndexHidden(self, index: QModelIndex) bool¶
- logicalIndexAt(self, position: int) int¶
- logicalIndexAt(self, ax: int, ay: int) int
- logicalIndexAt(self, apos: QPoint) int
- moveCursor(self, a0: QAbstractItemView.CursorAction, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) QModelIndex¶
- orientation(self) Qt.Orientation¶
- reset(self)¶
- resetDefaultSectionSize(self)¶
- resizeSections(self)¶
- resizeSections(self, mode: QHeaderView.ResizeMode) None
- restoreState(self, state: QByteArray | bytes | bytearray) bool¶
- rowsInserted(self, parent: QModelIndex, start: int, end: int)¶
- saveState(self) QByteArray¶
- scrollTo(self, index: QModelIndex, hint: QAbstractItemView.ScrollHint)¶
- sectionClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionCountChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionHandleDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionMoved¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionResizeMode(self, logicalIndex: int) QHeaderView.ResizeMode¶
- sectionResized¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sectionsAboutToBeRemoved(self, parent: QModelIndex, logicalFirst: int, logicalLast: int)¶
- sectionsInserted(self, parent: QModelIndex, logicalFirst: int, logicalLast: int)¶
- setDefaultAlignment(self, alignment: Qt.Alignment | Qt.AlignmentFlag)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setOffsetToLastSection(self)¶
- setSectionResizeMode(self, logicalIndex: int, mode: QHeaderView.ResizeMode)¶
- setSectionResizeMode(self, mode: QHeaderView.ResizeMode) None
- setSelection(self, rect: QRect, flags: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag)¶
- setSortIndicator(self, logicalIndex: int, order: Qt.SortOrder)¶
- sizeHint(self) QSize¶
- sortIndicatorChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- sortIndicatorOrder(self) Qt.SortOrder¶
- updateGeometries(self)¶
- visualRect(self, index: QModelIndex) QRect¶
- visualRegionForSelection(self, selection: QItemSelection) QRegion¶
- class populse_mia.user_interface.pop_ups.QInputDialog(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
Bases:
QDialog- DoubleInput = 2¶
- class InputDialogOptions¶
- class InputDialogOptions(f: QInputDialog.InputDialogOptions | QInputDialog.InputDialogOption)
- class InputDialogOptions(a0: QInputDialog.InputDialogOptions)
Bases:
simplewrapper
- IntInput = 1¶
- NoButtons = 1¶
- TextInput = 0¶
- UseListViewForComboBoxItems = 2¶
- UsePlainTextEditForTextInput = 4¶
- doubleValueChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- doubleValueSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- getDouble(parent: QWidget | None, title: str | None, label: str | None, value: float = 0, min: float = -2147483647, max: float = 2147483647, decimals: int = 1, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
- getDouble(parent: QWidget | None, title: str | None, label: str | None, value: float, minValue: float, maxValue: float, decimals: int, flags: Qt.WindowFlags | Qt.WindowType, step: float) None
- getInt(parent: QWidget | None, title: str | None, label: str | None, value: int = 0, min: int = -2147483647, max: int = 2147483647, step: int = 1, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
- getItem(parent: QWidget | None, title: str | None, label: str | None, items: Iterable[str | None], current: int = 0, editable: bool = True, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags(), inputMethodHints: Qt.InputMethodHints | Qt.InputMethodHint = Qt.ImhNone)¶
- getMultiLineText(parent: QWidget | None, title: str | None, label: str | None, text: str | None = '', flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags(), inputMethodHints: Qt.InputMethodHints | Qt.InputMethodHint = Qt.ImhNone)¶
- getText(parent: QWidget | None, title: str | None, label: str | None, echo: QLineEdit.EchoMode = QLineEdit.Normal, text: str | None = '', flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags(), inputMethodHints: Qt.InputMethodHints | Qt.InputMethodHint = Qt.ImhNone)¶
- inputMode(self) QInputDialog.InputMode¶
- intValueChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- intValueSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- minimumSizeHint(self) QSize¶
- options(self) QInputDialog.InputDialogOptions¶
- setInputMode(self, mode: QInputDialog.InputMode)¶
- setOption(self, option: QInputDialog.InputDialogOption, on: bool = True)¶
- setOptions(self, options: QInputDialog.InputDialogOptions | QInputDialog.InputDialogOption)¶
- setTextEchoMode(self, mode: QLineEdit.EchoMode)¶
- sizeHint(self) QSize¶
- testOption(self, option: QInputDialog.InputDialogOption) bool¶
- textEchoMode(self) QLineEdit.EchoMode¶
- textValueChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- textValueSelected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.QLabel(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
- class populse_mia.user_interface.pop_ups.QLabel(text: str | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
Bases:
QFrame- alignment(self) Qt.Alignment¶
- clear(self)¶
- linkActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- linkHovered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- minimumSizeHint(self) QSize¶
- setAlignment(self, a0: Qt.Alignment | Qt.AlignmentFlag)¶
- setPicture(self, a0: QPicture)¶
- setTextFormat(self, a0: Qt.TextFormat)¶
- setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)¶
- sizeHint(self) QSize¶
- textFormat(self) Qt.TextFormat¶
- textInteractionFlags(self) Qt.TextInteractionFlags¶
- class populse_mia.user_interface.pop_ups.QLineEdit(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QLineEdit(contents: str | None, parent: QWidget | None = None)
Bases:
QWidget- LeadingPosition = 0¶
- NoEcho = 1¶
- Normal = 0¶
- Password = 2¶
- PasswordEchoOnEdit = 3¶
- TrailingPosition = 1¶
- addAction(self, action: QAction | None)¶
- addAction(self, action: QAction | None, position: QLineEdit.ActionPosition) None
- addAction(self, icon: QIcon, position: QLineEdit.ActionPosition) QAction | None
- alignment(self) Qt.Alignment¶
- backspace(self)¶
- clear(self)¶
- copy(self)¶
- cursorMoveStyle(self) Qt.CursorMoveStyle¶
- cursorPositionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cursorRect(self) QRect¶
- cut(self)¶
- del_(self)¶
- deselect(self)¶
- echoMode(self) QLineEdit.EchoMode¶
- editingFinished¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- getTextMargins(self)¶
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any¶
- inputMethodQuery(self, property: Qt.InputMethodQuery, argument: Any) Any
- inputRejected¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- minimumSizeHint(self) QSize¶
- paste(self)¶
- redo(self)¶
- returnPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- selectAll(self)¶
- selectionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- setAlignment(self, flag: Qt.Alignment | Qt.AlignmentFlag)¶
- setCursorMoveStyle(self, style: Qt.CursorMoveStyle)¶
- setEchoMode(self, a0: QLineEdit.EchoMode)¶
- setTextMargins(self, left: int, top: int, right: int, bottom: int)¶
- setTextMargins(self, margins: QMargins) None
- sizeHint(self) QSize¶
- textChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- textEdited¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- textMargins(self) QMargins¶
- undo(self)¶
- class populse_mia.user_interface.pop_ups.QListWidget(parent: QWidget | None = None)¶
Bases:
QListView- clear(self)¶
- closePersistentEditor(self, item: QListWidgetItem | None)¶
- currentItem(self) QListWidgetItem | None¶
- currentItemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- currentRowChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- currentTextChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- editItem(self, item: QListWidgetItem | None)¶
- findItems(self, text: str | None, flags: Qt.MatchFlags | Qt.MatchFlag) List[QListWidgetItem]¶
- indexFromItem(self, item: QListWidgetItem | None) QModelIndex¶
- insertItem(self, row: int, item: QListWidgetItem | None)¶
- insertItem(self, row: int, label: str | None) None
- isPersistentEditorOpen(self, item: QListWidgetItem | None) bool¶
- item(self, row: int) QListWidgetItem | None¶
- itemActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemAt(self, p: QPoint) QListWidgetItem | None¶
- itemAt(self, ax: int, ay: int) QListWidgetItem | None
- itemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemFromIndex(self, index: QModelIndex) QListWidgetItem | None¶
- itemPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemSelectionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemWidget(self, item: QListWidgetItem | None) QWidget | None¶
- items(self, data: QMimeData | None) List[QListWidgetItem]¶
- mimeData(self, items: Iterable[QListWidgetItem]) QMimeData | None¶
- openPersistentEditor(self, item: QListWidgetItem | None)¶
- removeItemWidget(self, aItem: QListWidgetItem | None)¶
- row(self, item: QListWidgetItem | None) int¶
- scrollToItem(self, item: QListWidgetItem | None, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)¶
- selectedItems(self) List[QListWidgetItem]¶
- setCurrentItem(self, item: QListWidgetItem | None)¶
- setCurrentItem(self, item: QListWidgetItem | None, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag) None
- setCurrentRow(self, row: int)¶
- setCurrentRow(self, row: int, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag) None
- setItemWidget(self, item: QListWidgetItem | None, widget: QWidget | None)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setSelectionModel(self, selectionModel: QItemSelectionModel | None)¶
- sortItems(self, order: Qt.SortOrder = Qt.AscendingOrder)¶
- supportedDropActions(self) Qt.DropActions¶
- takeItem(self, row: int) QListWidgetItem | None¶
- visualItemRect(self, item: QListWidgetItem | None) QRect¶
- class populse_mia.user_interface.pop_ups.QListWidgetItem(parent: QListWidget | None = None, type: int = QListWidgetItem.Type)¶
- class populse_mia.user_interface.pop_ups.QListWidgetItem(text: str | None, parent: QListWidget | None = None, type: int = QListWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QListWidgetItem(icon: QIcon, text: str | None, parent: QListWidget | None = None, type: int = QListWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QListWidgetItem(other: QListWidgetItem)
Bases:
wrapper- Type = 0¶
- UserType = 1000¶
- background(self) QBrush¶
- checkState(self) Qt.CheckState¶
- clone(self) QListWidgetItem | None¶
- flags(self) Qt.ItemFlags¶
- foreground(self) QBrush¶
- listWidget(self) QListWidget | None¶
- read(self, in_: QDataStream)¶
- setBackground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- setCheckState(self, state: Qt.CheckState)¶
- setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)¶
- setForeground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- setSizeHint(self, size: QSize)¶
- sizeHint(self) QSize¶
- write(self, out: QDataStream)¶
- class populse_mia.user_interface.pop_ups.QMessageBox(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QMessageBox(icon: QMessageBox.Icon, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.NoButton, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint)
Bases:
QDialog- Abort = 262144¶
- AcceptRole = 0¶
- ActionRole = 3¶
- Apply = 33554432¶
- ApplyRole = 8¶
- ButtonMask = -769¶
- Cancel = 4194304¶
- Close = 2097152¶
- Critical = 3¶
- Default = 256¶
- DestructiveRole = 2¶
- Discard = 8388608¶
- Escape = 512¶
- FirstButton = 1024¶
- FlagMask = 768¶
- Help = 16777216¶
- HelpRole = 4¶
- Ignore = 1048576¶
- Information = 1¶
- InvalidRole = -1¶
- LastButton = 134217728¶
- No = 65536¶
- NoAll = 131072¶
- NoButton = 0¶
- NoIcon = 0¶
- NoRole = 6¶
- NoToAll = 131072¶
- Ok = 1024¶
- Open = 8192¶
- Question = 4¶
- RejectRole = 1¶
- Reset = 67108864¶
- ResetRole = 7¶
- RestoreDefaults = 134217728¶
- Retry = 524288¶
- Save = 2048¶
- SaveAll = 4096¶
- class StandardButtons¶
- class StandardButtons(f: QMessageBox.StandardButtons | QMessageBox.StandardButton)
- class StandardButtons(a0: QMessageBox.StandardButtons)
Bases:
simplewrapper
- Warning = 2¶
- Yes = 16384¶
- YesAll = 32768¶
- YesRole = 5¶
- YesToAll = 32768¶
- addButton(self, button: QAbstractButton | None, role: QMessageBox.ButtonRole)¶
- addButton(self, text: str | None, role: QMessageBox.ButtonRole) QPushButton | None
- addButton(self, button: QMessageBox.StandardButton) QPushButton | None
- button(self, which: QMessageBox.StandardButton) QAbstractButton | None¶
- buttonClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- buttonRole(self, button: QAbstractButton | None) QMessageBox.ButtonRole¶
- critical(parent: QWidget | None, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) QMessageBox.StandardButton¶
- defaultButton(self) QPushButton | None¶
- icon(self) QMessageBox.Icon¶
- information(parent: QWidget | None, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) QMessageBox.StandardButton¶
- question(parent: QWidget | None, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.StandardButtons(QMessageBox.Yes | QMessageBox.No), defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) QMessageBox.StandardButton¶
- setDefaultButton(self, button: QPushButton | None)¶
- setDefaultButton(self, button: QMessageBox.StandardButton) None
- setEscapeButton(self, button: QAbstractButton | None)¶
- setEscapeButton(self, button: QMessageBox.StandardButton) None
- setIcon(self, a0: QMessageBox.Icon)¶
- setStandardButtons(self, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton)¶
- setTextFormat(self, a0: Qt.TextFormat)¶
- setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)¶
- setWindowModality(self, windowModality: Qt.WindowModality)¶
- standardButton(self, button: QAbstractButton | None) QMessageBox.StandardButton¶
- standardButtons(self) QMessageBox.StandardButtons¶
- standardIcon(icon: QMessageBox.Icon) QPixmap¶
- textFormat(self) Qt.TextFormat¶
- textInteractionFlags(self) Qt.TextInteractionFlags¶
- warning(parent: QWidget | None, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) QMessageBox.StandardButton¶
- class populse_mia.user_interface.pop_ups.QPlainTextEdit(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QPlainTextEdit(text: str | None, parent: QWidget | None = None)
Bases:
QAbstractScrollArea- NoWrap = 0¶
- WidgetWidth = 1¶
- blockBoundingGeometry(self, block: QTextBlock) QRectF¶
- blockBoundingRect(self, block: QTextBlock) QRectF¶
- blockCountChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- centerCursor(self)¶
- clear(self)¶
- contentOffset(self) QPointF¶
- copy(self)¶
- copyAvailable¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- createStandardContextMenu(self) QMenu | None¶
- createStandardContextMenu(self, position: QPoint) QMenu | None
- currentCharFormat(self) QTextCharFormat¶
- cursorPositionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cursorRect(self, cursor: QTextCursor) QRect¶
- cursorRect(self) QRect
- cut(self)¶
- ensureCursorVisible(self)¶
- find(self, exp: str | None, options: QTextDocument.FindFlags | QTextDocument.FindFlag = QTextDocument.FindFlags()) bool¶
- find(self, exp: QRegExp, options: QTextDocument.FindFlags | QTextDocument.FindFlag = QTextDocument.FindFlags()) bool
- find(self, exp: QRegularExpression, options: QTextDocument.FindFlags | QTextDocument.FindFlag = QTextDocument.FindFlags()) bool
- firstVisibleBlock(self) QTextBlock¶
- getPaintContext(self) QAbstractTextDocumentLayout.PaintContext¶
- inputMethodQuery(self, property: Qt.InputMethodQuery) Any¶
- inputMethodQuery(self, query: Qt.InputMethodQuery, argument: Any) Any
- lineWrapMode(self) QPlainTextEdit.LineWrapMode¶
- mergeCurrentCharFormat(self, modifier: QTextCharFormat)¶
- modificationChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- moveCursor(self, operation: QTextCursor.MoveOperation, mode: QTextCursor.MoveMode = QTextCursor.MoveAnchor)¶
- paste(self)¶
- redo(self)¶
- redoAvailable¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- selectAll(self)¶
- selectionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- setCurrentCharFormat(self, format: QTextCharFormat)¶
- setExtraSelections(self, selections: Iterable[QTextEdit.ExtraSelection])¶
- setLineWrapMode(self, mode: QPlainTextEdit.LineWrapMode)¶
- setTextCursor(self, cursor: QTextCursor)¶
- setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)¶
- setWordWrapMode(self, policy: QTextOption.WrapMode)¶
- textChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- textCursor(self) QTextCursor¶
- textInteractionFlags(self) Qt.TextInteractionFlags¶
- undo(self)¶
- undoAvailable¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- updateRequest¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- wordWrapMode(self) QTextOption.WrapMode¶
- class populse_mia.user_interface.pop_ups.QPushButton(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QPushButton(text: str | None, parent: QWidget | None = None)
- class populse_mia.user_interface.pop_ups.QPushButton(icon: QIcon, text: str | None, parent: QWidget | None = None)
Bases:
QAbstractButton- minimumSizeHint(self) QSize¶
- showMenu(self)¶
- sizeHint(self) QSize¶
- class populse_mia.user_interface.pop_ups.QRadioButton(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QRadioButton(text: str | None, parent: QWidget | None = None)
Bases:
QAbstractButton- minimumSizeHint(self) QSize¶
- sizeHint(self) QSize¶
- class populse_mia.user_interface.pop_ups.QScrollArea(parent: QWidget | None = None)¶
Bases:
QAbstractScrollArea- alignment(self) Qt.Alignment¶
- setAlignment(self, a0: Qt.Alignment | Qt.AlignmentFlag)¶
- sizeHint(self) QSize¶
- viewportSizeHint(self) QSize¶
- class populse_mia.user_interface.pop_ups.QSpinBox(parent: QWidget | None = None)¶
Bases:
QAbstractSpinBox- setStepType(self, stepType: QAbstractSpinBox.StepType)¶
- stepType(self) QAbstractSpinBox.StepType¶
- textChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- valueChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.QSplitter(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QSplitter(orientation: Qt.Orientation, parent: QWidget | None = None)
Bases:
QFrame- minimumSizeHint(self) QSize¶
- orientation(self) Qt.Orientation¶
- refresh(self)¶
- restoreState(self, state: QByteArray | bytes | bytearray) bool¶
- saveState(self) QByteArray¶
- setOrientation(self, a0: Qt.Orientation)¶
- sizeHint(self) QSize¶
- splitterMoved¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.QTableWidget(parent: QWidget | None = None)¶
- class populse_mia.user_interface.pop_ups.QTableWidget(rows: int, columns: int, parent: QWidget | None = None)
Bases:
QTableView- cellActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cellChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cellClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cellDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cellEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cellPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- clear(self)¶
- clearContents(self)¶
- closePersistentEditor(self, item: QTableWidgetItem | None)¶
- column(self, item: QTableWidgetItem | None) int¶
- currentCellChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- currentItem(self) QTableWidgetItem | None¶
- currentItemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- editItem(self, item: QTableWidgetItem | None)¶
- findItems(self, text: str | None, flags: Qt.MatchFlags | Qt.MatchFlag) List[QTableWidgetItem]¶
- horizontalHeaderItem(self, column: int) QTableWidgetItem | None¶
- indexFromItem(self, item: QTableWidgetItem | None) QModelIndex¶
- isPersistentEditorOpen(self, item: QTableWidgetItem | None) bool¶
- item(self, row: int, column: int) QTableWidgetItem | None¶
- itemActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemAt(self, p: QPoint) QTableWidgetItem | None¶
- itemAt(self, ax: int, ay: int) QTableWidgetItem | None
- itemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemFromIndex(self, index: QModelIndex) QTableWidgetItem | None¶
- itemPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemPrototype(self) QTableWidgetItem | None¶
- itemSelectionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- items(self, data: QMimeData | None) List[QTableWidgetItem]¶
- mimeData(self, items: Iterable[QTableWidgetItem]) QMimeData | None¶
- openPersistentEditor(self, item: QTableWidgetItem | None)¶
- row(self, item: QTableWidgetItem | None) int¶
- scrollToItem(self, item: QTableWidgetItem | None, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)¶
- selectedItems(self) List[QTableWidgetItem]¶
- setCurrentCell(self, row: int, column: int)¶
- setCurrentCell(self, row: int, column: int, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag) None
- setCurrentItem(self, item: QTableWidgetItem | None)¶
- setCurrentItem(self, item: QTableWidgetItem | None, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag) None
- setHorizontalHeaderItem(self, column: int, item: QTableWidgetItem | None)¶
- setItem(self, row: int, column: int, item: QTableWidgetItem | None)¶
- setItemPrototype(self, item: QTableWidgetItem | None)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setVerticalHeaderItem(self, row: int, item: QTableWidgetItem | None)¶
- sortItems(self, column: int, order: Qt.SortOrder = Qt.AscendingOrder)¶
- supportedDropActions(self) Qt.DropActions¶
- takeHorizontalHeaderItem(self, column: int) QTableWidgetItem | None¶
- takeItem(self, row: int, column: int) QTableWidgetItem | None¶
- takeVerticalHeaderItem(self, row: int) QTableWidgetItem | None¶
- verticalHeaderItem(self, row: int) QTableWidgetItem | None¶
- visualItemRect(self, item: QTableWidgetItem | None) QRect¶
- class populse_mia.user_interface.pop_ups.QTableWidgetItem(type: int = QTableWidgetItem.ItemType.Type)¶
- class populse_mia.user_interface.pop_ups.QTableWidgetItem(text: str | None, type: int = QTableWidgetItem.ItemType.Type)
- class populse_mia.user_interface.pop_ups.QTableWidgetItem(icon: QIcon, text: str | None, type: int = QTableWidgetItem.ItemType.Type)
- class populse_mia.user_interface.pop_ups.QTableWidgetItem(other: QTableWidgetItem)
Bases:
wrapper- Type = 0¶
- UserType = 1000¶
- background(self) QBrush¶
- checkState(self) Qt.CheckState¶
- clone(self) QTableWidgetItem | None¶
- flags(self) Qt.ItemFlags¶
- foreground(self) QBrush¶
- read(self, in_: QDataStream)¶
- setBackground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- setCheckState(self, state: Qt.CheckState)¶
- setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)¶
- setForeground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- setSizeHint(self, size: QSize)¶
- sizeHint(self) QSize¶
- tableWidget(self) QTableWidget | None¶
- write(self, out: QDataStream)¶
- class populse_mia.user_interface.pop_ups.QTabWidget(parent: QWidget | None = None)¶
Bases:
QWidget- East = 3¶
- North = 0¶
- Rounded = 0¶
- South = 1¶
- Triangular = 1¶
- West = 2¶
- addTab(self, widget: QWidget | None, a1: str | None) int¶
- addTab(self, widget: QWidget | None, icon: QIcon, label: str | None) int
- clear(self)¶
- currentChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- elideMode(self) Qt.TextElideMode¶
- iconSize(self) QSize¶
- insertTab(self, index: int, widget: QWidget | None, a2: str | None) int¶
- insertTab(self, index: int, widget: QWidget | None, icon: QIcon, label: str | None) int
- minimumSizeHint(self) QSize¶
- setElideMode(self, a0: Qt.TextElideMode)¶
- setIconSize(self, size: QSize)¶
- setTabPosition(self, a0: QTabWidget.TabPosition)¶
- setTabShape(self, s: QTabWidget.TabShape)¶
- sizeHint(self) QSize¶
- tabBarClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- tabBarDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- tabCloseRequested¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- tabPosition(self) QTabWidget.TabPosition¶
- tabShape(self) QTabWidget.TabShape¶
- class populse_mia.user_interface.pop_ups.QTreeWidget(parent: QWidget | None = None)¶
Bases:
QTreeView- addTopLevelItem(self, item: QTreeWidgetItem | None)¶
- addTopLevelItems(self, items: Iterable[QTreeWidgetItem])¶
- clear(self)¶
- closePersistentEditor(self, item: QTreeWidgetItem | None, column: int = 0)¶
- collapseItem(self, item: QTreeWidgetItem | None)¶
- currentItem(self) QTreeWidgetItem | None¶
- currentItemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- dropMimeData(self, parent: QTreeWidgetItem | None, index: int, data: QMimeData | None, action: Qt.DropAction) bool¶
- editItem(self, item: QTreeWidgetItem | None, column: int = 0)¶
- expandItem(self, item: QTreeWidgetItem | None)¶
- findItems(self, text: str | None, flags: Qt.MatchFlags | Qt.MatchFlag, column: int = 0) List[QTreeWidgetItem]¶
- headerItem(self) QTreeWidgetItem | None¶
- indexFromItem(self, item: QTreeWidgetItem | None, column: int = 0) QModelIndex¶
- indexOfTopLevelItem(self, item: QTreeWidgetItem | None) int¶
- insertTopLevelItem(self, index: int, item: QTreeWidgetItem | None)¶
- insertTopLevelItems(self, index: int, items: Iterable[QTreeWidgetItem])¶
- invisibleRootItem(self) QTreeWidgetItem | None¶
- isFirstItemColumnSpanned(self, item: QTreeWidgetItem | None) bool¶
- isPersistentEditorOpen(self, item: QTreeWidgetItem | None, column: int = 0) bool¶
- itemAbove(self, item: QTreeWidgetItem | None) QTreeWidgetItem | None¶
- itemActivated¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemAt(self, p: QPoint) QTreeWidgetItem | None¶
- itemAt(self, ax: int, ay: int) QTreeWidgetItem | None
- itemBelow(self, item: QTreeWidgetItem | None) QTreeWidgetItem | None¶
- itemChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemCollapsed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemDoubleClicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemEntered¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemExpanded¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemFromIndex(self, index: QModelIndex) QTreeWidgetItem | None¶
- itemPressed¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- itemSelectionChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- mimeData(self, items: Iterable[QTreeWidgetItem]) QMimeData | None¶
- openPersistentEditor(self, item: QTreeWidgetItem | None, column: int = 0)¶
- removeItemWidget(self, item: QTreeWidgetItem | None, column: int)¶
- scrollToItem(self, item: QTreeWidgetItem | None, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)¶
- selectedItems(self) List[QTreeWidgetItem]¶
- setCurrentItem(self, item: QTreeWidgetItem | None)¶
- setCurrentItem(self, item: QTreeWidgetItem | None, column: int) None
- setCurrentItem(self, item: QTreeWidgetItem | None, column: int, command: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag) None
- setFirstItemColumnSpanned(self, item: QTreeWidgetItem | None, span: bool)¶
- setHeaderItem(self, item: QTreeWidgetItem | None)¶
- setModel(self, model: QAbstractItemModel | None)¶
- setSelectionModel(self, selectionModel: QItemSelectionModel | None)¶
- sortItems(self, column: int, order: Qt.SortOrder)¶
- supportedDropActions(self) Qt.DropActions¶
- takeTopLevelItem(self, index: int) QTreeWidgetItem | None¶
- topLevelItem(self, index: int) QTreeWidgetItem | None¶
- visualItemRect(self, item: QTreeWidgetItem | None) QRect¶
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(type: int = QTreeWidgetItem.Type)¶
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(strings: Iterable[str | None], type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidget | None, type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidget | None, strings: Iterable[str | None], type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidget | None, preceding: QTreeWidgetItem | None, type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidgetItem | None, type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidgetItem | None, strings: Iterable[str | None], type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(parent: QTreeWidgetItem | None, preceding: QTreeWidgetItem | None, type: int = QTreeWidgetItem.Type)
- class populse_mia.user_interface.pop_ups.QTreeWidgetItem(other: QTreeWidgetItem)
Bases:
wrapper- DontShowIndicator = 1¶
- DontShowIndicatorWhenChildless = 2¶
- ShowIndicator = 0¶
- Type = 0¶
- UserType = 1000¶
- addChild(self, child: QTreeWidgetItem | None)¶
- addChildren(self, children: Iterable[QTreeWidgetItem])¶
- checkState(self, column: int) Qt.CheckState¶
- child(self, index: int) QTreeWidgetItem | None¶
- childIndicatorPolicy(self) QTreeWidgetItem.ChildIndicatorPolicy¶
- clone(self) QTreeWidgetItem | None¶
- emitDataChanged(self)¶
- flags(self) Qt.ItemFlags¶
- indexOfChild(self, achild: QTreeWidgetItem | None) int¶
- insertChild(self, index: int, child: QTreeWidgetItem | None)¶
- insertChildren(self, index: int, children: Iterable[QTreeWidgetItem])¶
- parent(self) QTreeWidgetItem | None¶
- read(self, in_: QDataStream)¶
- removeChild(self, child: QTreeWidgetItem | None)¶
- setBackground(self, column: int, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- setCheckState(self, column: int, state: Qt.CheckState)¶
- setChildIndicatorPolicy(self, policy: QTreeWidgetItem.ChildIndicatorPolicy)¶
- setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)¶
- setForeground(self, column: int, brush: QBrush | QColor | Qt.GlobalColor | QGradient)¶
- sortChildren(self, column: int, order: Qt.SortOrder)¶
- takeChild(self, index: int) QTreeWidgetItem | None¶
- takeChildren(self) List[QTreeWidgetItem]¶
- treeWidget(self) QTreeWidget | None¶
- write(self, out: QDataStream)¶
- class populse_mia.user_interface.pop_ups.QVBoxLayout¶
- class populse_mia.user_interface.pop_ups.QVBoxLayout(parent: QWidget | None)
Bases:
QBoxLayout
- class populse_mia.user_interface.pop_ups.QWidget(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())¶
Bases:
QObject,QPaintDevice- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- IgnoreMask = 4¶
- class RenderFlags¶
- class RenderFlags(f: QWidget.RenderFlags | QWidget.RenderFlag)
- class RenderFlags(a0: QWidget.RenderFlags)
Bases:
simplewrapper
- activateWindow(self)¶
- adjustSize(self)¶
- backgroundRole(self) QPalette.ColorRole¶
- baseSize(self) QSize¶
- childrenRect(self) QRect¶
- childrenRegion(self) QRegion¶
- clearFocus(self)¶
- clearMask(self)¶
- contentsMargins(self) QMargins¶
- contentsRect(self) QRect¶
- contextMenuPolicy(self) Qt.ContextMenuPolicy¶
- create(self, window: PyQt5.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- createWindowContainer(window: QWindow | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = 0) QWidget¶
- customContextMenuRequested¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- effectiveWinId(self) PyQt5.sip.voidptr¶
- ensurePolished(self)¶
- focusPolicy(self) Qt.FocusPolicy¶
- fontInfo(self) QFontInfo¶
- fontMetrics(self) QFontMetrics¶
- foregroundRole(self) QPalette.ColorRole¶
- frameGeometry(self) QRect¶
- frameSize(self) QSize¶
- geometry(self) QRect¶
- getContentsMargins(self)¶
- grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlags | Qt.GestureFlag = Qt.GestureFlags())¶
- grabKeyboard(self)¶
- grabMouse(self)¶
- grabMouse(self, a0: QCursor | Qt.CursorShape) None
- grabShortcut(self, key: QKeySequence | QKeySequence.StandardKey | str | None | int, context: Qt.ShortcutContext = Qt.WindowShortcut) int¶
- hide(self)¶
- inputMethodHints(self) Qt.InputMethodHints¶
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any¶
- layoutDirection(self) Qt.LayoutDirection¶
- locale(self) QLocale¶
- lower(self)¶
- mask(self) QRegion¶
- maximumSize(self) QSize¶
- minimumSize(self) QSize¶
- minimumSizeHint(self) QSize¶
- nativeEvent(self, eventType: QByteArray | bytes | bytearray, message: PyQt5.sip.voidptr | None)¶
- normalGeometry(self) QRect¶
- overrideWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)¶
- overrideWindowState(self, state: Qt.WindowStates | Qt.WindowState)¶
- palette(self) QPalette¶
- raise_(self)¶
- rect(self) QRect¶
- releaseKeyboard(self)¶
- releaseMouse(self)¶
- render(self, target: QPaintDevice | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))¶
- render(self, painter: QPainter | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren)) None
- repaint(self)¶
- repaint(self, x: int, y: int, w: int, h: int) None
- repaint(self, a0: QRect) None
- repaint(self, a0: QRegion) None
- restoreGeometry(self, geometry: QByteArray | bytes | bytearray) bool¶
- saveGeometry(self) QByteArray¶
- setAttribute(self, attribute: Qt.WidgetAttribute, on: bool = True)¶
- setBackgroundRole(self, a0: QPalette.ColorRole)¶
- setContentsMargins(self, left: int, top: int, right: int, bottom: int)¶
- setContentsMargins(self, margins: QMargins) None
- setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)¶
- setCursor(self, a0: QCursor | Qt.CursorShape)¶
- setFocus(self)¶
- setFocus(self, reason: Qt.FocusReason) None
- setFocusPolicy(self, policy: Qt.FocusPolicy)¶
- setForegroundRole(self, a0: QPalette.ColorRole)¶
- setInputMethodHints(self, hints: Qt.InputMethodHints | Qt.InputMethodHint)¶
- setLayoutDirection(self, direction: Qt.LayoutDirection)¶
- setLocale(self, locale: QLocale)¶
- setPalette(self, a0: QPalette)¶
- setParent(self, parent: QWidget | None)¶
- setParent(self, parent: QWidget | None, f: Qt.WindowFlags | Qt.WindowType) None
- setSizePolicy(self, a0: QSizePolicy)¶
- setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) None
- setWindowFlag(self, a0: Qt.WindowType, on: bool = True)¶
- setWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)¶
- setWindowModality(self, windowModality: Qt.WindowModality)¶
- setWindowState(self, state: Qt.WindowStates | Qt.WindowState)¶
- show(self)¶
- showFullScreen(self)¶
- showMaximized(self)¶
- showMinimized(self)¶
- showNormal(self)¶
- size(self) QSize¶
- sizeHint(self) QSize¶
- sizeIncrement(self) QSize¶
- sizePolicy(self) QSizePolicy¶
- testAttribute(self, attribute: Qt.WidgetAttribute) bool¶
- ungrabGesture(self, type: Qt.GestureType)¶
- unsetCursor(self)¶
- unsetLayoutDirection(self)¶
- unsetLocale(self)¶
- update(self)¶
- update(self, a0: QRect) None
- update(self, a0: QRegion) None
- update(self, ax: int, ay: int, aw: int, ah: int) None
- updateGeometry(self)¶
- updateMicroFocus(self)¶
- visibleRegion(self) QRegion¶
- winId(self) PyQt5.sip.voidptr¶
- windowFlags(self) Qt.WindowFlags¶
- windowIconChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowIconTextChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowModality(self) Qt.WindowModality¶
- windowState(self) Qt.WindowStates¶
- windowTitleChanged¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowType(self) Qt.WindowType¶
- class populse_mia.user_interface.pop_ups.Project(project_root_folder, new_project)[source]¶
Bases:
objectClass that handles projects and their associated database.
- Parameters:
project_root_folder – project’s path
new_project – project’s object
- __init__(project_root_folder, new_project)[source]¶
Initialization of the project class.
- Parameters:
project_root_folder – project’s path
new_project – project’s object
- add_clinical_tags()[source]¶
Add new clinical tags to the project.
- Returns:
list of clinical tags that were added.
- cleanup_orphan_bricks(bricks=None)[source]¶
Remove orphan bricks and their associated files from the database.
This method performs the following cleanup operations: 1. Removes obsolete brick documents from the brick collection 2. Removes orphaned file documents from both current and initial
collections
Deletes the corresponding physical files from the filesystem
- Parameters:
(str) (bricks) – list of brick IDs to check for orphans. If None, checks all bricks in the database.
- cleanup_orphan_history()[source]¶
Remove orphan histories, their associated bricks, and files from the database.
This method performs three cleanup operations: 1. Removes obsolete history documents from the history collection 2. Removes orphaned brick documents from the brick collection 3. Removes orphaned file documents from both current and initial
collections, along with their corresponding physical files
- cleanup_orphan_nonexisting_files(failed=False)[source]¶
Remove database entries for files that are missing on disk.
- This method:
Retrieves filenames considered orphaned (see get_orphan_nonexisting_files),
Deletes their entries from both current and initial collections,
Attempts a defensive filesystem cleanup if the file still exists.
- Parameters:
(bool) (failed) – Passed through to get_orphan_nonexisting_files to control orphan selection.
- del_clinical_tags()[source]¶
Remove clinical tags from the project’s current and initial collections.
Iterates through predefined clinical tags and removes them from both collections if they exist in the current collection’s field names.
- Return (list):
Clinical tags that were successfully removed.
- files_in_project(files)[source]¶
Extract file/directory names from input that are within the project folder.
Recursively processes the input to find all file paths, handling nested data structures. Only paths within the project directory are included.
- Parameters:
files –
Input that may contain file paths. Can be: - str: A single file path - list/tuple/set: Collection of file paths or
nested structures
dict: Only values are processed, keys are ignored
- Return (set):
Relative file paths that exist within the project folder, with paths normalized and made relative to the project directory
- finished_bricks(engine, pipeline=None, include_done=False)[source]¶
Retrieve and process finished bricks from workflows and pipelines.
This method: 1. Gets finished bricks from workflows and optionally a specific
pipeline
Filters them based on their presence in the Mia database
Updates brick metadata with execution status and outputs
Collects all output files that are within the project directory
- Parameters:
engine – Engine instance for retrieving finished bricks
pipeline – Optional pipeline object to filter specific bricks
include_done – If True, includes all bricks regardless of execution status. If False, only includes “Not Done” bricks.
- Return (dict):
Dictionary containing: - ‘bricks’: Dict mapping brick IDs to their metadata - ‘outputs’: Set of output file paths relative to project
directory
- Contains:
- Private function:
- _update_dict: Merge two dictionaries by updating the first
with the second
- _collect_outputs: Recursively collects file paths from
output values that are within the project directory.
- get_data_history(path)[source]¶
Get the processing history for the given data file.
The history dict contains several elements: - parent_files: set of other data used (directly or indirectly) to
produce the data.
- processes: processing bricks set from each ancestor data which
lead to the given one. Elements are process (brick) UUIDs.
- Parameters:
path – Path to the data file
- Returns:
history (dict)
- getDate()[source]¶
Return the date of creation of the project.
- Return (str):
The date of creation of the project if it’s not Unnamed project, otherwise empty string
- get_finished_bricks_in_pipeline(pipeline)[source]¶
Retrieves a dictionary of finished processes (bricks) from a given pipeline, including nested pipelines, if any.
- Parameters:
Process) (pipeline (Pipeline or) – The pipeline or single process to analyze. If a single process is provided, it will be treated as a minimal pipeline.
- Return (dict):
A dictionary where keys are process UUIDs (brick IDs) and values are dictionaries containing the associated process instances.
- get_finished_bricks_in_workflows(engine)[source]¶
Return finished Soma-Workflow jobs indexed by their brick UUID.
A job is considered successful if its termination status is
"finished_regularly". Any other termination status is treated as a failure. A workflow is marked asfailedif at least one of its jobs did not finish successfully.- Parameters:
engine – Engine providing access to the Soma-Workflow controller.
- Return (dict):
Mapping
brick_uuid -> job_infowherejob_infocontains: -workflow(int): Workflow identifier. -job: Soma-Workflow job instance. -job_id(int): Job identifier. -swf_status(tuple): Raw Soma-Workflow statustuple.
running(bool): True of any job in the workflowis running
failed(bool): True if any job in the workflowfailed.
- getFilter(target_filter)[source]¶
Return a Filter object from its name.
- Parameters:
(str) (target_filter) – Filter name
- Return (Filter):
Filter object corresponding to the given name or None if not found
- getFilterName()[source]¶
Input box to type the name of the filter to save.
- Return (str):
Return the name typed by the user or None if cancelled
- getName()[source]¶
Return the name of the project.
- Return (str):
The name of the project if it’s not Unnamed project, otherwise empty string
- get_orphan_bricks(bricks=None)[source]¶
Identifies orphan bricks and their associated weak files.
- Parameters:
set) (bricks (list or) – A list or set of brick IDs to filter the search. If None, all bricks in the database are considered. Defaults to None.
- Return (tuple):
A tuple containing two sets: - orphan (set): Brick IDs considered orphaned, meaning
they have no valid or existing outputs linked to the current database.
- orphan_weak_files (set): Paths to weak files associated
with orphaned bricks, such as script files or files that no longer exist.
- get_orphan_history()[source]¶
Identifies orphaned history entries, their associated orphan bricks, and weak files.
- Return (tuple):
A tuple containing three sets: - orphan_hist (set): IDs of history entries that are no longer
linked to any current document in the database.
- orphan_bricks (set): IDs of bricks associated with orphaned
history entries.
- orphan_weak_files (set): Paths to weak files (e.g., script
files or non-existent files) linked to orphaned history entries.
- get_orphan_nonexisting_files(failed)[source]¶
Return filenames that are recorded in the database but missing on disk.
A file is considered “orphaned” if: - It does not exist on the filesystem, and - It is not associated with any existing bricks, unless failed is True (in which case brick association is ignored).
- Parameters:
(bool) (failed) – If True, include files even if they are linked to existing bricks. If False, exclude such files.
- Return (set):
A set of filenames from the database that are not found on the filesystem and are not associated with existing bricks.
- getSortedTag()[source]¶
Return the sorted tag of the project.
- Return (str):
Sorted tag of the project if it’s not Unnamed project, otherwise empty string
- getSortOrder()[source]¶
Return the sort order of the project.
- Return (str):
Sort order of the project if it’s not Unnamed project, otherwise empty string
- hasUnsavedModifications()[source]¶
Return if the project has unsaved modifications or not.
- Return (bool):
True if the project has pending modifications, False otherwise
- init_filters()[source]¶
Initializes project filters by loading them from stored JSON files.
This method sets the currentFilter to a default empty filter and populates the filters list with Filter objects created
- loadProperties()[source]¶
Loads the project properties from the ‘properties.yml’ file.
This method reads the project’s YAML properties file and returns its contents as a Python dictionary.
- Return (dict):
A dictionary containing the project properties if successfully loaded, or None if an error occurs.
- redo(table)[source]¶
Redo the last action made by the user on the project.
- Parameters:
(QTableWidget) (table) – The table on which to apply the modifications.
- Actions that can be redone:
add_tag
remove_tags
add_scans
modified_values
modified_visibilities
- Raises:
(ValueError) – If an unknown action type is encountered.
- reput_values(values)[source]¶
Re-put the value objects in the database.
- Parameters:
(list) (values) – List of Value objects
- save_current_filter(custom_filters)[source]¶
Save the current filter.
- Parameters:
custom_filters – The customized filter
- setCurrentFilter(new_filter)[source]¶
Set the current filter of the project.
- Parameters:
new_filter – New Filter object
- setName(name)[source]¶
Set the name of the project if it’s not Unnamed project, otherwise does nothing.
- Parameters:
(str) (name) – New name of the project
- setSortedTag(tag)[source]¶
Set the sorted tag of the project.
- Parameters:
tag – New sorted tag of the project
- setSortOrder(order)[source]¶
Set the sort order of the project.
- Parameters:
order – New sort order of the project (ascending or descending)
- undo(table)[source]¶
Undo the last action made by the user on the project.
- Parameters:
table – Table on which to apply the modifications
- Actions that can be undone:
add_tag
remove_tags
add_scans
modified_values
modified_visibilities
- property unsavedModifications¶
Getter for _unsavedModifications.
- update_db_for_paths(new_path=None)[source]¶
Update database paths when renaming or loading a project.
This method updates path references in the database when a project is renamed or loaded from a different location. It scans the HISTORY and BRICK collections to identify the old project path, then systematically replaces it with the new path.
The method looks for the old path in brick input/output fields and history pipeline XML data. If the old path contains ‘data/derived_data’, the method uses the portion before this segment as the base path.
- Parameters:
(str) (new_path) – The new project path. If not provided, the current project folder path is used.
- Contains:
- Private method:
- _update_json_data: Helper method to update paths in JSON
data structures
- class populse_mia.user_interface.pop_ups.Config(properties_path=None)[source]¶
Bases:
objectObject that handles the configuration of the software
Contains:
Methods:
_configure_matlab_only: Configures MATLAB without SPM
_configure_matlab_spm: Configures SPM and MATLAB
_configure_mcr_only: Configures MCR without SPM
_configure_standalone_spm: Configures standalone SPM and MCR
_disable_matlab_spm: Disables all MATLAB and SPM configurations
get_admin_hash: Get the value of the hash of the admin password
get_afni_path: Returns the path of AFNI
get_ants_path: Returns the path of ANTS
getBackgroundColor: Get background color
get_capsul_config: Get CAPSUL config dictionary
get_capsul_engine: Get a global CapsulEngine object used for all operations in MIA application
getChainCursors: Returns if the “chain cursors” checkbox of the mini-viewer is activated
get_freesurfer_setup: Get freesurfer path
get_fsl_config: Returns the path of the FSL config file
get_mainwindow_maximized: Get the maximized (full-screen) flag
get_mainwindow_size: Get the main window size
get_matlab_command: Returns Matlab command
get_matlab_path: Returns the path of Matlab’s executable
get_matlab_standalone_path: Returns the path of Matlab Compiler Runtime
get_max_projects: Returns the maximum number of projects displayed in the “Saved projects” menu
get_max_thumbnails: Get max thumbnails number at the data browser bottom
get_mri_conv_path: Returns the MRIManager.jar path
get_mrtrix_path: Returns mrtrix path
getNbAllSlicesMax: Returns the maximum number of slices to display in the mini viewer
get_opened_projects: Returns the opened projects
get_projects_save_path: Returns the folder where the projects are saved
get_properties_path: Returns the software’s properties path
get_referential: Returns boolean to indicate DataViewer referential
get_resources_path: Get the resources path
getShowAllSlices: Returns if the “show all slices” checkbox of the mini viewer is activated
getSourceImageDir: Get the source directory for project images
get_spm_path: Returns the path of SPM12 (license version)
get_spm_standalone_path: Returns the path of SPM12 (standalone version)
getTextColor: Return the text color
getThumbnailTag: Returns the tag that is displayed in the mini viewer
get_use_afni: Returns the value of “use afni” checkbox in the preferences
get_use_ants: Returns the value of “use ants” checkbox in the preferences
get_use_clinical: Returns the value of “clinical mode” checkbox in the preferences
get_use_freesurfer: Returns the value of “use freesurfer” checkbox in the preferences
get_use_fsl: Returns the value of “use fsl” checkbox in the preferences
get_use_matlab: Returns the value of “use matlab” checkbox in the preferences
get_use_matlab_standalone: Returns the value of “use matlab standalone” checkbox in the preferences
get_use_mrtrix: Returns the value of “use mrtrix” checkbox in the preferences
get_user_level: Get the user level in the Capsul config
get_user_mode: Returns the value of “user mode” checkbox in the preferences
get_use_spm: Returns the value of “use spm” checkbox in the preferences
get_use_spm_standalone: Returns the value of “use spm standalone” checkbox in the preferences
getViewerConfig: Returns the DataViewer configuration (neuro or radio), by default neuro
getViewerFramerate: Returns the DataViewer framerate for automatic time running images
isAutoSave: Checks if auto-save mode is activated
isControlV1: Checks if the selected display of the controller is of V1 type
isRadioView: Checks if miniviewer in radiological orientation (if not, then it is in neurological orientation)
loadConfig: Reads the config in the config.yml file
saveConfig: Saves the config to the config.yml file
set_admin_hash: Set the password hash
set_afni_path: Set the path of the AFNI
set_ants_path: Set the path of the ANTS
setAutoSave: Sets the auto-save mode
setBackgroundColor: Sets the background color
set_capsul_config: Set CAPSUL configuration dict into MIA config
setChainCursors: Set the “chain cursors” checkbox of the mini viewer
set_clinical_mode: Set the value of “clinical mode” in the preferences
setControlV1: Set controller display mode (True if V1)
set_freesurfer_setup: Set freesurfer path
set_fsl_config: Set the path of the FSL config file
set_mainwindow_maximized: Set the maximized (fullscreen) flag
set_mainwindow_size: Set main window size
set_matlab_path: Set the path of Matlab’s executable
set_matlab_standalone_path: Set the path of Matlab Compiler Runtime
set_max_projects: Set the maximum number of projects displayed in the “Saved projects” menu
set_max_thumbnails: Set max thumbnails number at the data browser bottom
set_mri_conv_path: Set the MRIManager.jar path
set_mrtrix_path: Set the path of mrtrix
setNbAllSlicesMax: Set the maximum number of slices to display in the mini viewer
set_opened_projects: Set the opened projects
set_projects_save_path: Set the folder where the projects are saved
set_radioView: Set the orientation in miniviewer (True for radiological, False for neurological orientation)
set_referential: Set the DataViewer referential
set_resources_path: Set the resources path
setShowAllSlices: Set the “show all slices” checkbox of the mini viewer
setSourceImageDir: Set the source directory for project images
set_spm_path: Set the path of SPM12 (license version)
set_spm_standalone_path: Set the path of SPM12 (standalone version)
setTextColor: Set the text color
setThumbnailTag: Set the tag that is displayed in the mini viewer
set_use_afni: Set the value of “use afni” checkbox in the preferences
set_use_ants: Set the value of “use ants” checkbox in the preferences
set_use_freesurfer: Set the value of “use freesurfer” checkbox in the preferences
set_use_fsl: Set the value of “use fsl” checkbox in the preferences
set_use_matlab: Set the value of “use matlab” checkbox in the preferences
set_use_matlab_standalone: Set the value of “use matlab standalone” checkbox in the preferences
set_use_mrtrix: Set the value of “use mrtrix” checkbox in the preferences
set_user_mode: Set the value of “user mode” checkbox in the preferences
set_use_spm: Set the value of “use spm” checkbox in the preferences
set_use_spm_standalone: Set the value of “use spm standalone” checkbox in the preferences
setViewerConfig: Set the Viewer configuration neuro or radio
setViewerFramerate: Set the Viewer frame rate for automatic running time images
update_capsul_config: Update a global CapsulEngine object used for all operations in MIA application
- capsul_engine = None¶
- __init__(properties_path=None)[source]¶
Initialization of the Config class
- Parameters:
properties_path – (str) If provided, the configuration file will be loaded / saved from the given directory. Otherwise, the regular heuristics will be used to determine the config path. This option allows to use an alternative config directory (for tests for instance).
- _configure_matlab_only(matlab_path: str) None[source]¶
Configures MATLAB without SPM, ensuring that only MATLAB is used.
- Parameters:
matlab_path – (str) The directory path of the MATLAB installation.
- _configure_matlab_spm(spm_dir, matlab_path)[source]¶
Configures SPM to use the specified SPM directory with a MATLAB installation.
- Parameters:
spm_dir – (str) The directory path of the SPM installation.
matlab_path – (str) The directory path of the MATLAB installation.
- _configure_mcr_only(mcr_dir: str) None[source]¶
Configures MATLAB Compiler Runtime (MCR) without SPM, ensuring that only MCR is used.
- Parameters:
mcr_dir – (str) The directory path of the MATLAB Compiler Runtime (MCR).
- _configure_standalone_spm(spm_dir, mcr_dir)[source]¶
Configures standalone SPM to use the specified SPM and MATLAB Compiler Runtime (MCR) directories.
- Parameters:
spm_dir – (str) The directory path of the standalone SPM installation.
mcr_dir – (str) The directory path of the MATLAB Compiler Runtime (MCR).
- _disable_matlab_spm() None[source]¶
Disables all MATLAB and SPM configurations, ensuring that neither MATLAB nor SPM is used.
- get_admin_hash()[source]¶
Retrieves the hashed admin password from the configuration.
- Returns:
The hashed admin password if found in config, False if not present in config.
- getBackgroundColor()[source]¶
Get background color.
- Returns:
(str) Background color, or “” if unknown.
- get_capsul_config(sync_from_engine=True)[source]¶
Retrieve and construct the Capsul configuration dictionary.
This function builds a configuration dictionary for Capsul, incorporating settings for various neuroimaging tools and processing engines. It manages configurations for tools like SPM, FSL, FreeSurfer, MATLAB, AFNI, ANTs, and MRTrix.
The function first retrieves local settings for each tool from the Mia preferences, then constructs the appropriate configuration structure. If requested, it can synchronize the configuration with the current Capsul engine state.
- Parameters:
sync_from_engine – (bool) If True, synchronizes the configuration with the current Capsul engine settings after building the base configuration.
- Returns:
(dict) A nested dictionary containing the complete Capsul configuration, structured with the following main sections:
engine_modules: List of available processing modulesengine: Contains global and environment-specific settings, as well as configurations specific to certain tools (SPM, FSL, etc.)
- Private functions:
_configure_spm: Configure SPM settings.
_configure_tool: Configure various neuroimaging settings (e.g. ‘fsl’, ‘afni’, etc.)
- static get_capsul_engine()[source]¶
Get or create a global CapsulEngine singleton for Mia application operations.
The engine is created only once when first needed (lazy initialization). Subsequent calls return the same instance.
- Returns:
(CapsulEngine) The global CapsulEngine instance.
- getChainCursors()[source]¶
Get the value of the checkbox ‘chain cursor’ in miniviewer.
- Returns:
(bool) Value of the checkbox.
- get_freesurfer_setup()[source]¶
Get the freesurfer path.
- Returns:
(str) Path to freesurfer, or “” if unknown.
- get_fsl_config()[source]¶
Get the FSL config file path.
- Returns:
(str) Path to the fsl/etc/fslconf/fsl.sh file.
- get_mainwindow_maximized()[source]¶
Get the maximized (fullscreen) flag.
- Returns:
(bool) Maximized (fullscreen) flag.
- get_matlab_command()[source]¶
Retrieves the appropriate Matlab command based on the configuration.
- Returns:
(str) The Matlab executable path or None if no path is specified.
- get_matlab_standalone_path()[source]¶
Get the path to matlab compiler runtime.
- Returns:
(str) A path.
- get_max_projects()[source]¶
Retrieves the maximum number of projects displayed in the “Saved projects” menu.
- Returns:
(int) The maximum number of projects. Defaults to 5 if not specified.
- get_max_thumbnails()[source]¶
Retrieves the maximum number of thumbnails displayed in the mini-viewer at the bottom of the data browser.
- Returns:
(int) The maximum number of thumbnails. Defaults to 5 if not specified.
- getNbAllSlicesMax()[source]¶
Get number the maximum number of slices to display in the miniviewer.
- Returns:
(int) Maximum number of slices to display in miniviewer.
- get_properties_path()[source]¶
Retrieves the path to the folder containing the “processes” and “properties” directories of Mia.
The properties path is defined in the configuration_path.yml file, located in ~/.populse_mia.
In user mode, the path is retrieved from the properties_user_path parameter.
In developer mode, the path is retrieved from the properties_dev_path parameter.
If outdated parameters (mia_path, mia_user_path) are found, they are automatically updated in the configuration file.
- Returns:
(str) The absolute path to the properties folder.
- get_referential()[source]¶
Retrieves the chosen referential from the anatomist_2 data viewer.
- Returns:
(str) “0” for World Coordinates, “1” for Image ref.
- getShowAllSlices()[source]¶
Get whether the show_all_slices parameters was enabled or not in the miniviewer.
- Returns:
(bool) True if the show_all_slices parameters was enabled.
- get_spm_standalone_path()[source]¶
Get the path to the SPM12 standalone version.
- Returns:
(str) A path.
- getThumbnailTag()[source]¶
Get the tag of the thumbnail displayed in the miniviewer.
- Returns:
(str) The tag of the thumbnail displayed in miniviewer.
- get_use_afni()[source]¶
Get the value of “use afni” checkbox in the preferences.
- Returns:
(bool) The value of “use afni” checkbox.
- get_use_ants()[source]¶
Get the value of “use ants” checkbox in the preferences.
- Returns:
(bool) The value of “use ants” checkbox.
- get_use_clinical()[source]¶
Get the clinical mode in the preferences.
- Returns:
(bool) The clinical mode.
- get_use_freesurfer()[source]¶
Get the value of “use freesurfer” checkbox in the preferences.
- Returns:
(bool) The value of “use freesurfer” checkbox.
- get_use_fsl()[source]¶
Get the value of “use fsl” checkbox in the preferences.
- Returns:
(bool) The value of “use fsl” checkbox.
- get_use_matlab()[source]¶
Get the value of “use matlab” checkbox in the preferences.
- Returns:
(bool) The value of “use matlab” checkbox.
- get_use_matlab_standalone()[source]¶
Get the value of “use matlab standalone” checkbox in the preferences.
- Returns:
(bool) The value of “use matlab standalone” checkbox.
- get_use_mrtrix()[source]¶
Get the value of “use mrtrix” checkbox in the preferences.
- Returns:
(bool) The value of “use mrtrix” checkbox.
- get_user_level()[source]¶
Get the user level in the Capsul config.
- Returns:
(int) The user level in the Capsul config.
- get_user_mode()[source]¶
Get if user mode is disabled or enabled in the preferences.
- Returns:
(bool) If True, the user mode is enabled.
- get_use_spm()[source]¶
Get the value of “use spm” checkbox in the preferences.
- Returns:
(bool) The value of “use spm” checkbox.
- get_use_spm_standalone()[source]¶
Get the value of “use spm standalone” checkbox in the preferences.
- Returns:
(bool) The value of “use spm standalone” checkbox.
- getViewerConfig()[source]¶
Get the viewer config “neuro” or “radio”, “neuro” by default.
- Returns:
(str) The viewer config (“neuro” or “radio”).
- getViewerFramerate()[source]¶
Get the Viewer framerate.
- Returns:
(str) The Viewer framerat (ex. “5”).
- isAutoSave()[source]¶
Get if the auto-save mode is enabled or not.
- Returns:
(bool) If True, auto-save mode is enabled.
- isControlV1()[source]¶
Gets whether the controller display is of type V1.
- Returns:
(bool) If True, V1 controller display.
- isRadioView()[source]¶
Get if the display in miniviewer is in radiological orientation.
- Returns:
(bool) If True, radiological orientation, otherwise neurological orientation.
- loadConfig()[source]¶
Read the config from config.yml file.
Attempts to read an encrypted YAML configuration file from the properties directory, decrypt it using Fernet encryption, and parse it as YAML.
- Returns:
(dict) Parsed configuration from the YAML file. Returns empty dict if parsing fails.
- saveConfig()[source]¶
Save the current parameters in the config.yml file.
Encrypts and writes the current configuration (self.config) to config.yml using Fernet encryption. Creates the necessary directory structure if it doesn’t exist. After saving, updates the capsul configuration.
- setBackgroundColor(color)[source]¶
Set background color and save configuration.
- Parameters:
color – Color string (‘Black’, ‘Blue’, ‘Green’, ‘Grey’, ‘Orange’, ‘Red’, ‘Yellow’, ‘White’)
- set_capsul_config(capsul_config_dict)[source]¶
Update Mia configuration with Capsul settings and synchronize tools configuration.
Called after editing Capsul config (via File > Mia preferences > Pipeline tab > Edit CAPSUL config) to synchronize Capsul settings with Mia preferences. Configures various neuroimaging tools (AFNI, ANTs, FSL, etc.) based on the Capsul engine configuration.
- Parameters:
capsul_config_dict – Dictionary containing Capsul configuration.
Structure of capsul_config_dict:
{ 'engine': { 'environment_name': {...configuration...} }, 'engine_modules': [...] }
- Private function:
_get_module_config: Extracts module configuration from the global Capsul configuration.
- setChainCursors(chain_cursors)[source]¶
Set the value of the checkbox ‘chain cursor’ in the mini viewer.
- Parameters:
chain_cursors – A boolean.
- set_clinical_mode(clinical_mode)[source]¶
Enable or disable clinical mode.
- Parameters:
clinical_mode – A boolean.
- setControlV1(controlV1)[source]¶
Set controller display mode (True if V1).
- Parameters:
controlV1 – A boolean.
- set_freesurfer_setup(path)[source]¶
Set the freesurfer config file.
- Parameters:
path – (str) Path to freesurfer/FreeSurferEnv.sh.
- set_fsl_config(path)[source]¶
Set the FSL config file.
- Parameters:
path – (str) Path to fsl/etc/fslconf/fsl.sh.
- set_mainwindow_maximized(enabled)[source]¶
Set the maximized (full-screen) flag.
- Parameters:
enabled – A boolean.
- set_matlab_path(path)[source]¶
Set the path of Matlab’s executable.
- Parameters:
path – (str) A path.
- set_matlab_standalone_path(path)[source]¶
Set the path of Matlab Compiler Runtime.
- Parameters:
path – (str) A path.
- set_max_projects(nb_max_projects)[source]¶
Set the maximum number of projects displayed in the “Saved projects” menu.
- Parameters:
nb_max_projects – An integer.
- set_max_thumbnails(nb_max_thumbnails)[source]¶
Set max thumbnails number at the data browser bottom.
- Parameters:
nb_max_thumbnails – An integer.
- setNbAllSlicesMax(nb_slices_max)[source]¶
Set the number of slices to display in the mini-viewer.
- Parameters:
nb_slices_max – (int) Maximum number of slices to display.
- set_opened_projects(new_projects)[source]¶
Set the list of opened projects and saves the modification.
- Parameters:
new_projects – (list[str]) A list of paths.
- set_projects_save_path(path)[source]¶
Set the folder where the projects are saved.
- Parameters:
path – (str) A path.
- set_radioView(radio_view)[source]¶
Set the radiological / neurological orientation in mini viewer.
True for radiological
False for neurological
- Parameters:
radio_view – A boolean.
- set_referential(ref)[source]¶
Set the referential to “image Ref” or “World Coordinates” in anatomist_2 data viewer.
- Parameters:
ref – (str) “0” for World Coordinates, “1” for Image Ref.
- setShowAllSlices(show_all_slices)[source]¶
Set the show_all_slides setting in miniviewer.
- Parameters:
show_all_slices – A boolean.
- setSourceImageDir(source_image_dir)[source]¶
Set the source directory for project images.
- Parameters:
source_image_dir – (str) A path.
- set_spm_standalone_path(path)[source]¶
Set the path of SPM (standalone version).
- Parameters:
path – (str) A path.
- setTextColor(color)[source]¶
Set text color and save configuration.
- Parameters:
color – Color string (‘Black’, ‘Blue’, ‘Green’, ‘Grey’, ‘Orange’, ‘Red’, ‘Yellow’, ‘White’)
- setThumbnailTag(thumbnail_tag)[source]¶
Set the tag that is displayed in the mini-viewer.
- Parameters:
thumbnail_tag – A string.
- set_use_afni(use_afni)[source]¶
Set the value of “use_afni” checkbox in the preferences.
- Parameters:
use_afni – A boolean.
- set_use_ants(use_ants)[source]¶
Set the value of “use_ants” checkbox in the preferences.
- Parameters:
use_ants – A boolean.
- set_use_freesurfer(use_freesurfer)[source]¶
Set the value of “use_freesurfer” checkbox in the preferences.
- Parameters:
use_freesurfer – A boolean.
- set_use_fsl(use_fsl)[source]¶
Set the value of “use_fsl” checkbox in the preferences.
- Parameters:
use_fsl – A boolean.
- set_use_matlab(use_matlab)[source]¶
Set the value of “use matlab” checkbox in the preferences.
- Parameters:
use_matlab – A boolean.
- set_use_matlab_standalone(use_matlab_standalone)[source]¶
Set the value of “use_matlab_standalone” checkbox in the preferences.
- Parameters:
use_matlab – A boolean.
- set_use_mrtrix(use_mrtrix)[source]¶
Set the value of “use_mrtrix” checkbox in the preferences.
- Parameters:
use_mrtrix – A boolean.
- set_use_spm(use_spm)[source]¶
Set the value of “use spm” checkbox in the preferences.
- Parameters:
use_spm – A boolean.
- set_use_spm_standalone(use_spm_standalone)[source]¶
Set the value of “use spm standalone” checkbox in the preferences.
- Parameters:
use_spm_standalone – A boolean.
- setViewerConfig(config_NeuRad)[source]¶
sets user’s configuration neuro or radio for data_viewer.
neuro: neurological
radio: radiological
- Parameters:
config_NeuRad – A string.
- setViewerFramerate(im_sec)[source]¶
sets user’s framerate for data_viewer.
- Parameters:
im_sec – (int) Number of images per second.
- update_capsul_config()[source]¶
Updates the global CapsulEngine object used for all operations in the Mia application.
The CapsulEngine is created once when needed and updated each time the configuration is saved. This method ensures that all necessary engine modules are loaded and configurations are properly imported from the saved settings.
- Returns:
(capsul.engine.CapsulEngine) The updated CapsulEngine object, or None if the engine is not initialized.
- populse_mia.user_interface.pop_ups.check_value_type(value, value_type, is_subvalue=False)[source]¶
Checks the type of new value in a table cell (QTableWidget).
- Parameters:
(str) (value) – Value of the cell (always a str, can be a string representation of a list)
(type) (value_type) – Expected type (can be list[str], list[int], etc.)
(bool) (is_subvalue) – Whether the value is a subvalue of a list.
- Returns:
True if the value is valid to replace the old one, False otherwise
- populse_mia.user_interface.pop_ups.message_already_exists()[source]¶
Displays a message box to tell that a project name already exists.
- populse_mia.user_interface.pop_ups.set_projects_directory_as_default(dialog, Config)[source]¶
Sets the projects directory as default.
- Parameters:
(QFileDialog) (dialog) – current file dialog.
Config – The class that manages Mia’s configuration and properties.
- populse_mia.user_interface.pop_ups.verCmp(first_ver, sec_ver, comp)[source]¶
Version comparator.
- Compares two versions according to the specified comparator:
‘eq’: Returns True if the first version is equal to the second.
- ‘sup’: Returns True if the first version is greater than or equal
to the second.
- ‘inf’: Returns True if the first version is less than or equal to
the second.
- Parameters:
(str) (comp) – The first version to compare (e.g., ‘0.13.0’).
(str) – The second version to compare (e.g., ‘0.13.0’).
(str) – The comparator to use (‘sup’, ‘inf’, ‘eq’).
- Returns:
True if the comparison condition is satisfied, False otherwise.
- Contains:
- Private function:
normalise: transform a version of a package to a corresponding list of integer
- class populse_mia.user_interface.pop_ups.ClickableLabel[source]¶
Bases:
QLabelA QLabel subclass that emits a signal when clicked.
- clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.DefaultValueListCreation(parent, type)[source]¶
Bases:
QDialogA dialog for creating or editing a list’s default value.
This widget allows users to input and manage a list of values based on a specified type (e.g., integers, floats, booleans, etc.).
- __init__(parent, type)[source]¶
Initializes the DefaultValueListCreation dialog.
- Parameters:
(DefaultValueQLineEdit) (parent) – The parent object.
(Type) (type) – The type of the list elements (e.g., int, float, str).
- add_element()[source]¶
Adds a new empty element to the list.
Increases the number of columns in the table by one and adds an empty QTableWidgetItem for user input.
- default_init_table()[source]¶
Initializes the table with a default value.
If no previous value exists, the table is set up with a single empty column to allow user input.
- remove_element()[source]¶
Removes the last element from the list.
Ensures that at least one column remains to prevent an empty table. Adjusts the table size accordingly.
- resize_table()[source]¶
Adjusts the size of the popup window based on the table content.
Dynamically resizes the table width and height based on the number of columns and rows, with a maximum width limit of 900 pixels.
- update_default_value()[source]¶
Validates user input and updates the parent’s default value.
Converts table values to the specified list type, ensuring that each entry is valid. If any value is invalid, a warning message is displayed, and the update is aborted.
If all values are valid, they are stored in the parent widget, and the dialog is closed.
- class populse_mia.user_interface.pop_ups.DefaultValueQLineEdit(parent)[source]¶
Bases:
QLineEditA QLineEdit override for handling default values.
This class customizes QLineEdit to handle list-type default values by displaying a popup when clicked.
- class populse_mia.user_interface.pop_ups.PopUpAddPath(project, databrowser)[source]¶
Bases:
QDialogDialog for adding a document to the project without using the MRI Files Manager (File > Import).
- class populse_mia.user_interface.pop_ups.PopUpAddTag(databrowser, project)[source]¶
Bases:
QDialogDialog for adding a new tag to the project.
This dialog allows users to create a new tag by specifying its name, default value, description, unit, and type.
- signal_add_tag¶
Signal emitted when a new tag is successfully added
- - _connect_signals
Connect signals to slots
- - _setup_layouts
Set up the layout of UI elements
- - _setup_ui
Set up the dialog UI elements
- - _show_error
Display an error message box
- - ok_action
Validates input fields and adds the new tag if valid
- - on_activated
Updates form fields when tag type is changed
- signal_add_tag¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(databrowser, project)[source]¶
Initialize the dialog for adding a new tag.
- Parameters:
databrowser – The data browser instance
project – The current project in the software
- _show_error(text, informative_text)[source]¶
Display an error message box.
- Parameters:
text – The main error message text
informative_text – The additional informative text
- class populse_mia.user_interface.pop_ups.PopUpCloneTag(databrowser, project)[source]¶
Bases:
QDialogDialog for cloning an existing tag with a new name.
This dialog allows users to select an existing tag from the project and clone it with a new name.
- signal_clone_tag¶
Signal emitted when a tag is successfully cloned
- - _connect_signals
Connect signals to slots
- - _populate_tag_list
Populate the tag list with available tags
- - _setup_ui
Set up the dialog UI elements
- - _show_error
Display an error message box
- - ok_action
Validates the new tag name and clones the selected tag
- - search_str
Filters the tag list based on a search string
- signal_clone_tag¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(databrowser, project)[source]¶
Initialize the dialog for cloning a tag.
- Parameters:
databrowser – The data browser instance
project – The current project in the software
- _connect_signals(project)[source]¶
Connect signals to slots.
- Parameters:
project – The current project
- _populate_tag_list(project)[source]¶
Populate the tag list with available tags from the project.
- Parameters:
project – The current project
- _show_error(text, informative_text)[source]¶
Display an error message box.
- Parameters:
text – The main error message text
informative_text – The additional informative text
- class populse_mia.user_interface.pop_ups.PopUpClosePipeline(pipeline_name)[source]¶
Bases:
QDialogDialog displayed when closing a modified pipeline editor.
This dialog asks the user whether they want to save changes before closing the pipeline editor. It provides three options: save, don’t save, or cancel.
- Signals:
save_as_signal: Emitted when the user chooses to save the pipeline. do_not_save_signal: Emitted when the user chooses not to save
the pipeline.
cancel_signal: Emitted when the user cancels the closing action.
- save_as_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- do_not_save_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cancel_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(pipeline_name)[source]¶
Initialize the dialog with the pipeline name.
- Parameters:
(str) (pipeline_name) – Name of the pipeline (basename).
- can_exit()[source]¶
Check if the editor can be closed.
Return (bool): True if the editor can be closed, False otherwise.
- cancel_clicked()[source]¶
Handle the cancel button click.
Sets bool_exit to False, emits cancel_signal, and closes the dialog.
- class populse_mia.user_interface.pop_ups.PopUpDataBrowserCurrentSelection(project, databrowser, filter, main_window, TableDataBrowser)[source]¶
Bases:
QDialogDialog to display and confirm the current data browser selection.
This dialog shows a table of the currently selected document from the data browser and allows the user to confirm or cancel the selection. When confirmed, it updates the scan_list attribute of relevant components in the main window.
- project¶
Current project in the software.
- databrowser¶
Data browser instance of the software.
- filter¶
List of the current documents in the data browser.
- main_window¶
Main window of the software.
- __init__(project, databrowser, filter, main_window, TableDataBrowser)[source]¶
Initialize the dialog with the current project and selection data.
- Parameters:
project – Current project in the software
databrowser – Data browser instance of the software
(list) (filter) – List of the current documents in the data browser
main_window – Main window of the software
TableDataBrowser – Class for displaying data in a table format
- class populse_mia.user_interface.pop_ups.PopUpDeletedProject(deleted_projects)[source]¶
Bases:
QMessageBoxMessage box that displays a list of deleted, renamed, or moved projects.
This dialog appears when the software starts and detects that previously available projects are no longer accessible at their expected locations.
- class populse_mia.user_interface.pop_ups.PopUpDeleteProject(main_window)[source]¶
Bases:
QDialogDialog for deleting selected projects.
Allows the user to select and delete one or more projects from the projects directory after confirmation.
- __init__(main_window)[source]¶
Initializes the delete project dialog.
- Parameters:
(QMainWindow) (main_window) – The main application window
- class populse_mia.user_interface.pop_ups.PopUpFilterSelection(project)[source]¶
Bases:
QDialogDialog for selecting a previously saved filter.
- Methods:
cancel_clicked: Closes the pop-up.
ok_clicked: Handles actions when the “OK” button is clicked.
search_str: Filters the list based on the search input.
- __init__(project)[source]¶
Initializes the pop-up dialog.
- Parameters:
(object) (project) – The current project containing saved filters
- class populse_mia.user_interface.pop_ups.PopUpInformation(project)[source]¶
Bases:
QWidgetPopup window displaying the current project’s information.
- signal_preferences_change¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.PopUpInheritanceDict(values, node_name, plug_name, iterate)[source]¶
Bases:
QDialogDialog for selecting tag inheritance between input and output plugs.
This dialog allows users to select which input plug should pass its tags to a specific output plug, or to choose to ignore tag inheritance altogether.
- Methods:
_setup_buttons: Set up action buttons for the dialog
_setup_radio_buttons: Set up radio buttons for each input option
ok_clicked: Event when ok button is clicked
okall_clicked: Event when Ok all button is clicked
on_clicked: Event when radiobutton is clicked
ignoreall_clicked: Event when ignore all plugs button is clicked
ignore_clicked: Event when ignore button is clicked
ignore_node_clicked: Event when ignore all nodes button is clicked
- __init__(values, node_name, plug_name, iterate)[source]¶
Initialize the inheritance selection dialog.
- Parameters:
(dict) (values) – Dict mapping input names (keys) to their paths (values)
(str) (plug_name) – Name of the current node
(str) – Name of the current output plug
(bool) (iterate) – Boolean indicating if the choice applies to iterations
- _setup_buttons(node_name, plug_name, layout)[source]¶
Set up action buttons for the dialog.
- Parameters:
node_name – Name of the current node
plug_name – Name of the current output plug
layout – Layout to add the buttons to
- _setup_radio_buttons(values, layout)[source]¶
Set up radio buttons for each input option.
- Parameters:
values – Dict mapping input names to their paths
layout – Layout to add the radio buttons to
- ok_clicked()[source]¶
Handle OK button click.
Accepts the dialog with current selection applied to current plug.
- okall_clicked()[source]¶
Handle ‘OK for all output plugs’ button click.
Accepts the dialog with current selection applied to all output plugs.
- on_clicked()[source]¶
Handle radio button selection event.
Updates the currently selected input value and key.
- ignoreall_clicked()[source]¶
Handle ‘Ignore for all output plugs’ button click.
Accepts the dialog with tag inheritance ignored for all output plugs.
- class populse_mia.user_interface.pop_ups.PopUpMultipleSort(project, table_data_browser)[source]¶
Bases:
QDialogDialog for sorting the data browser’s table based on multiple tags.
This dialog allows users to select multiple tags (columns) for sorting table data in either ascending or descending order. Users can dynamically add or remove sort criteria.
- __init__(project, table_data_browser)[source]¶
Initialize the multiple sort dialog.
- Parameters:
project – Current project in the software
table_data_browser – Data browser’s table to be sorted
- fill_values(idx)[source]¶
Collect unique values for the selected tag.
- Parameters:
idx – Index of the tag button in the push_buttons list
- class populse_mia.user_interface.pop_ups.PopUpNewProject[source]¶
Bases:
QFileDialogDialog for creating a new project.
This dialog is displayed when the user wants to create a new project. It manages file selection and handles the creation process.
- signal_create_project¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- get_filename(file_name_tuple)[source]¶
Process the selected filename and set up project attributes.
- Parameters:
(tuple) (file_name_tuple) – Tuple containing the selected filename(s), obtained from the selectedFiles method
Note
If the file already exists, displays an error message. Otherwise, closes the dialog and emits signal_create_project.
- class populse_mia.user_interface.pop_ups.PopUpOpenProject[source]¶
Bases:
QFileDialogDialog for opening an existing MIA project.
This dialog allows users to select an existing project directory from the filesystem. It uses the default projects directory as the starting location and emits a signal when a valid project is selected.
- signal_create_project¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- get_filename(file_name_tuple)[source]¶
Process the selected directory and emit signal if valid.
Sets the path, name, and relative_path attributes based on the selected directory. If the directory exists, emits signal_create_project.
- Parameters:
(tuple) (file_name_tuple) – Tuple containing selected directory path(s). Typically obtained from selectedFiles() method.
- class populse_mia.user_interface.pop_ups.PopUpPreferences(main_window)[source]¶
Bases:
QDialogDialog for changing software preferences.
This class manages the preferences dialog for the software, allowing users to configure various settings related to tools, projects, and appearance.
- signal_preferences_change¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- use_clinical_mode_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- not_use_clinical_mode_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(main_window)[source]¶
Initialize the preferences dialog.
- Parameters:
main_window – The main window object of the software
- change_admin_psswd(status)[source]¶
Open a dialog to change the admin password with validation checks.
- Parameters:
(str) (status) – Initial status message to display in the dialog.
- control_checkbox_toggled()[source]¶
Check if the user really wants to change the controller version.
- create_appearance_tab(_translate)[source]¶
Create and configure the ‘Appearance’ tab with color and display settings.
- Parameters:
(callable) (_translate) – Function used to translate UI text (translate method of QCoreApplication in the Qt framework.)
- create_capsul_group(groupbox_capsul)[source]¶
Create and configure the CAPSUL group box with a configuration button.
- Parameters:
(QGroupBox) (groupbox_capsul) – The group box to be configured for CAPSUL settings.
- create_horizontal_box(*widgets, add_stretch=True)[source]¶
Create a horizontal box layout containing the specified widgets.
- Parameters:
...]) (widgets (tuple[QtWidgets.QWidget,) – The widgets to add to the layout.
(bool) (add_stretch) – Whether to add stretch at the end to push the widgets to the left. Defaults to True.
- Return (QHBoxLayout):
The created horizontal box layout.
- create_pipeline_tab(_translate)[source]¶
Create the ‘Pipeline’ tab in the settings interface.
This tab allows configuring various neuroimaging tool settings, including Matlab, SPM, FSL, AFNI, ANTS, FreeSurfer, MRtrix, and CAPSUL.
- Parameters:
(Callable) (_translate) – Function used to translate UI text (translate method of QCoreApplication in the Qt framework.)
- create_tools_tab(_translate)[source]¶
Create the ‘Tools’ tab in the settings interface.
This tab contains various sections for configuring global preferences, project-specific settings, third-party tool integration, and external resources.
- Parameters:
(Callable) (_translate) – Function used to translate UI text (translate method of QCoreApplication in the Qt framework.)
- edit_capsul_config()[source]¶
Capsul engine edition.
This method is used when user hit the Edit CAPSUL config button (File > MIA preferences > Pipeline tab).
- findChar()[source]¶
Highlights characters in red when using the Find button in the configuration editor.
This method searches for a pattern entered in the find field and highlights all matching occurrences in the text editor.
- save_minimal_config(config)[source]¶
Saves a minimal configuration for CAPSUL config synchronization.
- Parameters:
(Config) (config) – The configuration object to update and save.
- save_full_config(config)[source]¶
Saves the full configuration and validates settings.
- Parameters:
(Config) (config) – The configuration object to update and save.
- Return (bool):
True if the configuration is valid and successfully saved, False otherwise.
- show_error_message(title, message)[source]¶
Displays an error message dialog.
- Parameters:
(str) (message) – The title of the error message dialog.
(str) – The detailed error message to display.
- show_warning_message(title, message)[source]¶
Displays a warning message dialog.
- Parameters:
(str) (message) – The title of the warning message dialog.
(str) – The detailed warning message to display.
- update_gui_from_capsul_config(conf)[source]¶
Updates the GUI elements based on the CAPSUL configuration.
This method retrieves the configuration settings for various neuroimaging tools (e.g., AFNI, ANTs, FreeSurfer, FSL, Matlab, SPM, etc.) and updates the corresponding GUI fields, including checkboxes and text fields.
- Parameters:
(software_properties.Config) (conf) – The Mia configuration object containing the paths and usage states of different tools.
- validate_and_save(OK_clicked=False)[source]¶
Validate and save the preferences.
- Parameters:
(bool) (ok_clicked) – Whether the OK button was clicked (True) when this method was launched.
- Contains:
- remove_capsul_config: Helper function to remove a
module’s configuration
- clean_spm_config: Cleans the SPM configuration based
on standalone mode
clean_matlab_config: Removes MATLAB-related configuration keys
- validate_matlab_path(path, config)[source]¶
Validates the given Matlab executable path.
- Parameters:
(str) (path) – The path to the Matlab executable.
(Config) (config) – The configuration object to update.
- Return (bool):
True if the path is valid and updated in the configuration, False otherwise.
- validate_matlab_standalone_path(path, config)[source]¶
Validate the Matlab standalone path.
This method does not thoroughly test the configuration for Matlab MCR alone (without SPM standalone) due to the lack of a concrete example.
- Parameters:
(str) (path) – The path to the Matlab standalone directory.
(Config) (config) – The configuration object to update.
- Return (bool):
True if the path is valid and updated in the configuration, False otherwise.
- validate_paths(config)[source]¶
Validate the paths and settings.
This method checks the validity of paths for various neuroimaging tools (AFNI, ANTS, FreeSurfer, FSL, MRtrix, Matlab, SPM, etc.) and updates the configuration accordingly. It also validates additional paths such as the projects folder, MRIFileManager.jar path, and resources folder.
- Parameters:
(Config) (config) – The configuration object where validated paths and settings will be stored.
- Return (bool):
True if all paths and settings are valid, False otherwise.
- validate_spm_path(path, config)[source]¶
Validates the SPM path and its compatibility with Matlab.
This method checks whether the provided SPM and Matlab paths are valid. If they are already configured correctly, it enables SPM and Matlab usage without further checks. Otherwise, it attempts to run an SPM command via Matlab to confirm the setup.
- Parameters:
(str) (path) – The file path to the SPM installation.
(Config) (config) – The configuration object where validated paths and settings will be stored.
- Return (bool):
True if the SPM path and Matlab path are valid, False otherwise.
- validate_spm_standalone_path(path, config)[source]¶
Validates the SPM standalone path and its compatibility with Matlab standalone.
This method checks whether the provided paths for SPM standalone and Matlab standalone (if applicable) are valid. It also verifies system architecture compatibility and attempts to execute SPM standalone to confirm its functionality.
- Parameters:
(str) (path) – The file path to the SPM standalone installation.
(Config) (config) – The configuration object where validated paths and settings will be stored.
- Return (bool):
True if the SPM standalone and Matlab standalone paths are valid, False otherwise.
- validate_tool_path(tool_name, path, cmd, config, config_name, set_in_use, set_path)[source]¶
Validates the specified tool’s path and checks its functionality.
This method checks if the given tool path exists and verifies that the tool is functional by running a command to check its version. It also handles tool-specific setup for FreeSurfer and FSL by setting environment variables and adjusting paths as necessary.
- Parameters:
(str) (config_name) – The name of the tool to validate (e.g., “FreeSurfer”, “FSL”, “Matlab”, etc.).
(str) – The file path to the tool’s installation directory.
(str) – The command to execute within the tool’s directory to check its version.
(Config) (config) – The configuration object where validated paths and settings will be stored.
(str) – The name of the configuration setting for the tool.
(Callable) (set_path) – A function to set the tool’s “in use” status in the configuration.
(Callable) – A function to set the tool’s path in the configuration.
- Return (bool):
True if the tool’s path is valid and functional, False otherwise.
- wrong_path(path, tool, extra_mess='')[source]¶
Displays an error message for an invalid tool path.
This method restores the cursor, clears the status label, and shows a QMessageBox with an error message indicating that the provided path for a specified tool is invalid.
- Parameters:
(str) (tool) – The invalid path entered by the user.
(str) – The name of the tool for which the path is being validated.
optional) (extra_mess (str,) – Additional context for the error message, such as specifying a configuration file.
- Return (None):
This function does not return anything.
- class populse_mia.user_interface.pop_ups.PopUpProperties(project, databrowser, old_tags)[source]¶
Bases:
QDialogDialog for modifying project properties.
Allows users to change project settings, including visualized tags and information. Is called when the user wants to change the current project’s properties (File > properties).
- signal_settings_change¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.PopUpQuit(project)[source]¶
Bases:
QDialogDialog to handle unsaved project modifications when closing the software.
Provides options to save, discard, or cancel the exit process. Is called when the user closes the software and the current project has been modified.
- save_as_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- do_not_save_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- cancel_signal¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class populse_mia.user_interface.pop_ups.PopUpRemoveScan(scan, size)[source]¶
Bases:
QDialogDialog to confirm removal of a scan previously sent to the pipeline manager.
Provides options to remove or keep a scan, with additional ‘apply to all’ functionality when multiple scans are involved. Is called when the user wants to remove a scan that was previously sent to the pipeline manager.
- __init__(scan, size)[source]¶
Initialize the remove scan confirmation dialog.
- Parameters:
scan – Identifier of the scan to be potentially removed.
size – Total number of scans in the removal process.
- cancel_clicked()[source]¶
Handle ‘Cancel’ action.
Sets stop flag to True and indicates no global action.
- no_all_clicked()[source]¶
Handle ‘No to All’ action.
Sets stop flag to True and indicates a global ‘No’ action.
- class populse_mia.user_interface.pop_ups.PopUpRemoveTag(databrowser, project)[source]¶
Bases:
QDialogDialog for removing user-defined tags from a Populse MIA project.
Allows users to select and remove custom tags from the project’s database.
- signal_remove_tag¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(databrowser, project)[source]¶
Initialize the remove tag dialog.
- Parameters:
databrowser – Data browser instance managing project data.
project – Current project containing tags to be removed.
- class populse_mia.user_interface.pop_ups.PopUpSaveProjectAs[source]¶
Bases:
QDialogDialog for saving a project under a new name.
Provides a user interface to select and save a project with a new name, with options to browse existing projects and validate the new project name.
- signal_saved_project¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__()[source]¶
Initialize the save project as dialog.
Sets up the user interface with a scrollable list of existing projects, input field for new project name, and save/cancel buttons.
- class populse_mia.user_interface.pop_ups.PopUpSeeAllProjects(saved_projects, main_window)[source]¶
Bases:
QDialogA dialog window for displaying and managing saved projects.
This dialog allows users to view a list of saved projects, check their existence, and open a selected project.
- __init__(saved_projects, main_window)[source]¶
Initialize the PopUpSeeAllProjects dialog.
- Parameters:
saved_projects – Container with a list of project paths.
main_window – Main window.
- checkState(path)[source]¶
Determine the icon based on project existence.
- Parameters:
(str) (path) – Path to the project directory.
- Returns:
QIcon: Green checkmark if project exists, red cross if not.
- class populse_mia.user_interface.pop_ups.PopUpSelectFilter(project, databrowser)[source]¶
Bases:
PopUpFilterSelectionPopup window for selecting and opening a previously saved filter.
- class populse_mia.user_interface.pop_ups.PopUpSelectIteration(iterated_tag, tag_values, selected_values)[source]¶
Bases:
QDialogDialog allowing the user to choose which values of a tag should be used during an iterated pipeline run.
- __init__(iterated_tag, tag_values, selected_values)[source]¶
Initializes the selection popup.
- Parameters:
(str) (iterated_tag) – Name of the tag whose values can be iterated.
(list[str]) (tag_values) – Available values for the tag.
- Selected_values (list[str]):
Values initially selected when the dialog opens.
- class populse_mia.user_interface.pop_ups.PopUpTagSelection(project)[source]¶
Bases:
QDialogA dialog for selecting and filtering tags in a data browser.
This class provides a user interface for: - Displaying available tags - Searching through tags - Selecting a single tag
- Is called when the user wants to update the tags that are visualized in
the data browser.
- __init__(project)[source]¶
Initialize the tag selection dialog.
- Parameters:
project – The current project containing the database with available tags
- _setup_ui(_translate)[source]¶
Set up the user interface components.
- Param_translate (callable):
Localization translation function
- _create_button(text, clicked_handler)[source]¶
Create a standard button with text and click handler.
- Parameters:
(str) (text) – Button text
(callable) (clicked_handler) – Function to call when button is clicked
- Return (QPushButton):
Configured button
- item_clicked(item)[source]¶
Handle item selection by checking/unchecking tags.
- Parameters:
(QListWidgetItem) – The clicked list item
- class populse_mia.user_interface.pop_ups.PopUpSelectTag(project)[source]¶
Bases:
PopUpTagSelectionA dialog for selecting and updating the thumbnail tag in the mini viewer.
This class allows users to choose which tag will be displayed as the thumbnail in the application’s mini viewer. It presents a list of available tags and allows selecting a single tag to be used as the thumbnail.
- __init__(project)[source]¶
Initialize the tag selection dialog.
- Parameters:
project – The current project in the software context.
- class populse_mia.user_interface.pop_ups.PopUpSelectTagCountTable(project, tags_to_display, tag_name_checked=None)[source]¶
Bases:
PopUpTagSelectionA pop-up dialog for selecting a tag from a count table.
Allows users to choose a single tag from a list of available tags, with an option to pre-select a specific tag.
- __init__(project, tags_to_display, tag_name_checked=None)[source]¶
Initialize the tag selection pop-up.
- Parameters:
project – The current project context.
(list) (tags_to_display) – List of tags to be displayed for selection.
(str) (tag_name_checked) – Optional tag to be pre-checked on initialization.
- class populse_mia.user_interface.pop_ups.PopUpShowHistory(project, brick_uuid, scan, databrowser, main_window)[source]¶
Bases:
QDialogA dialog for displaying the history of a document in a software pipeline.
This class creates a popup window that provides comprehensive information about a specific brick (processing node) in a pipeline, including: - Pipeline visualization - Input and output parameters - Initialization and execution details
The dialog allows users to: - View the pipeline structure - Inspect node details - Navigate between associated bricks - Select and highlight specific files
- __init__(project, brick_uuid, scan, databrowser, main_window)[source]¶
Initialize the document history popup.
- Parameters:
project – Current project in the software
(str) (scan) – Unique identifier of the brick
(str) – Filename of the scan
databrowser – Data browser instance
main_window – Main window of the software
- _updateio_table(io_dict, item_idx)[source]¶
Populate the table’s input and output sections with given dictionary data.
This method dynamically creates table headers and cell widgets based on the input dictionary, handling nested lists and detecting scanned file paths.
- Parameters:
(dict) (io_dict) – Dictionary containing input or output data to be displayed. Keys represent column headers, and values can be strings, lists, or nested lists.
(int) (item_idx) – The starting column index for populating the table
- Return (int):
The updated column index after processing the dictionary.
- find_associated_bricks(node_name)[source]¶
Find bricks associated with a given node name.
- Parameters:
(str) (node_name) – The name of the node to find associated bricks for.
- Return (dict):
A dictionary where the keys are the full brick names and the values are lists of associated UUIDs.
- find_process_from_plug(plug)[source]¶
Find the process and plug name from a given plug.
- Parameters:
(Plug) (plug) – The plug object to find the process and plug name from.
- Return (tuple):
A tuple containing the process name (str) and plug name (str).
- handle_pipeline_nodes(pipeline, full_brick_name)[source]¶
Handle pipeline nodes, set up the view, and initialize the pipeline visualization.
- Parameters:
(Pipeline) (pipeline) – The pipeline object containing the nodes to handle.
(list) (full_brick_name) – The full name of the brick, split into parts.
- highlight_selected_node(node_name)[source]¶
Highlight the selected node in the pipeline view.
- Parameters:
(str) (node_name) – The name of the node to highlight.
- initialize_pipeline(full_brick_name)[source]¶
Initialize the pipeline view using the given pipeline XML.
- Parameters:
(list) (full_brick_name) – The full name of the brick, split into parts.
- io_value_is_scan(value)[source]¶
Check if the I/O value is a scan.
- Parameters:
value – I/O value
- Returns:
The scan corresponding to the value if it exists, None otherwise
- load_data(brick_uuid, scan)[source]¶
Load data from the project database and update the table with brick data.
- Parameters:
(str) (scan) – The UUID of the brick to load.
(str) – The identifier of the scan associated with the brick.
- load_pipeline_data(history_uuid, full_brick_name)[source]¶
Load pipeline data from the database based on the provided history UUID.
- Parameters:
(str) (history_uuid) – The UUID of the history record to load pipeline data from.
(list) (full_brick_name) – The full name of the brick, split into parts.
- node_selected(node_name, process)[source]¶
Handle node selection and update the table.
- Parameters:
node_name – node name
process – process of the corresponding node
- select_node(pipeline, bricks, full_brick_name)[source]¶
Select the node in the pipeline view based on the provided brick UUID.
- Parameters:
(Pipeline) (pipeline) – The pipeline object containing the nodes to handle.
(dict) (bricks) – A dictionary of bricks with UUIDs as values.
(list) (full_brick_name) – The full name of the brick, split into parts.
- update_table(inputs, outputs, brick_name, init='', init_time=None, exec='', exec_time=None)[source]¶
Updates the table with information about a brick’s execution state.
- Parameters:
(dict) (outputs) – Dictionary containing input data.
(dict) – Dictionary containing output data.
(str) (brick_name) – Name of the brick.
optional) (exec_time (Any,) – Initialization status.
optional) – Initialization timestamp.
optional) – Execution status.
optional) – Execution timestamp.
- Contains:
- create_cell_widget: Creates a QWidget containing a vertically
aligned QLabel
- update_table_for_single_brick(bricks, node_name, full_node_name)[source]¶
Update the table for a single brick, using the provided brick data.
- Parameters:
(dict) (bricks) – A dictionary of bricks with UUIDs as values.
(str) (node_name) – The name of the node associated with the brick.
(list) (full_node_name) – The full name of the node, split into parts.
- update_table_for_subpipeline(bricks, process, full_node_name)[source]¶
Update the table for a subpipeline based on the given process and brick data.
- Parameters:
(dict) (bricks) – A dictionary of bricks with UUIDs as values.
(PipelineNode) (process) – The process node associated with the subpipeline.
(list) (full_node_name) – The full name of the node, split into parts.
- class populse_mia.user_interface.pop_ups.PopUpVisualizedTags(project, visualized_tags)[source]¶
Bases:
QWidgetA widget for managing tag visualization preferences in a project.
This class provides an interface for users to select and unselect tags to be displayed in the project. It allows searching through available tags and moving them between available and visualized lists.
- signal_preferences_change¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- __init__(project, visualized_tags)[source]¶
Initialize the tag visualization management widget.
- Parameters:
project – The current project in the software.
visualized_tags – Tags currently being visualized before opening this widget.
- _create_button(object_name, text, click_handler)[source]¶
Create a customized QPushButton with specified properties.
This method instantiates a QPushButton, sets its object name, translates and sets its text, and connects a click event handler.
- Parameters:
(str) (text) – The unique identifier name for the button.
(str) – The text to be displayed on the button, will be translated.
(callable) (click_handler) – The function to be called when the button is clicked.
- Return (QPushButton):
A configured button with the specified properties.
- _create_label(object_name, text)[source]¶
Create a customized QLabel with specified properties.
This method instantiates a QLabel, sets its text format, object name, and translates its text.
- Parameters:
(str) (text) – The unique identifier name for the label.
(str) – The text to be displayed on the label, will be translated.
- Return (QLabel):
A configured label with the specified properties.
- _create_tag_list(text='')[source]¶
Create a QListWidget configured for multi-selection of tags.
This method initializes a QListWidget with multi-selection mode nabled, allowing users to select multiple items simultaneously. The list widget is assigned a unique object name based on the optional text parameter.
- Parameters:
(str) (text) – A prefix used to create a unique object name for the QListWidget.
- Return (QListWidget):
A configured QListWidget with multi-selection mode enabled.
- search_str(str_search)[source]¶
Filter tags based on search string.
- Parameters:
(str) (str_search) – Search pattern to match against tags
- class populse_mia.user_interface.pop_ups.QLabel_clickable(parent=None)[source]¶
Bases:
QLabelA custom QLabel that emits a clicked signal when mouse pressed.
This class extends the standard QLabel to provide a signal that can be connected to other methods when the label is clicked, enabling more interactive label behaviors.
- clicked¶
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision