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

ClickableLabel()

A QLabel subclass that emits a signal when clicked.

DefaultValueListCreation(parent, type)

A dialog for creating or editing a list's default value.

DefaultValueQLineEdit(parent)

A QLineEdit override for handling default values.

PopUpAddPath(project, databrowser)

Dialog for adding a document to the project without using the MRI Files Manager (File > Import).

PopUpAddTag(databrowser, project)

Dialog for adding a new tag to the project.

PopUpCloneTag(databrowser, project)

Dialog for cloning an existing tag with a new name.

PopUpClosePipeline(pipeline_name)

Dialog displayed when closing a modified pipeline editor.

PopUpDataBrowserCurrentSelection(project, ...)

Dialog to display and confirm the current data browser selection.

PopUpDeleteProject(main_window)

Dialog for deleting selected projects.

PopUpDeletedProject(deleted_projects)

Message box that displays a list of deleted, renamed, or moved projects.

PopUpFilterSelection(project)

Dialog for selecting a previously saved filter.

PopUpInformation(project)

Popup window displaying the current project's information.

PopUpInheritanceDict(values, node_name, ...)

Dialog for selecting tag inheritance between input and output plugs.

PopUpMultipleSort(project, table_data_browser)

Dialog for sorting the data browser's table based on multiple tags.

PopUpNewProject()

Dialog for creating a new project.

PopUpOpenProject()

Dialog for opening an existing MIA project.

PopUpPreferences(main_window)

Dialog for changing software preferences.

PopUpProperties(project, databrowser, old_tags)

Dialog for modifying project properties.

PopUpQuit(project)

Dialog to handle unsaved project modifications when closing the software.

PopUpRemoveScan(scan, size)

Dialog to confirm removal of a scan previously sent to the pipeline manager.

PopUpRemoveTag(databrowser, project)

Dialog for removing user-defined tags from a Populse MIA project.

PopUpSaveProjectAs()

Dialog for saving a project under a new name.

PopUpSeeAllProjects(saved_projects, main_window)

A dialog window for displaying and managing saved projects.

PopUpSelectFilter(project, databrowser)

Popup window for selecting and opening a previously saved filter.

PopUpSelectIteration(iterated_tag, ...)

Dialog allowing the user to choose which values of a tag should be used during an iterated pipeline run.

PopUpSelectTag(project)

A dialog for selecting and updating the thumbnail tag in the mini viewer.

PopUpSelectTagCountTable(project, ...[, ...])

A pop-up dialog for selecting a tag from a count table.

PopUpShowHistory(project, brick_uuid, scan, ...)

A dialog for displaying the history of a document in a software pipeline.

PopUpTagSelection(project)

A dialog for selecting and filtering tags in a data browser.

PopUpVisualizedTags(project, visualized_tags)

A widget for managing tag visualization preferences in a project.

QLabel_clickable([parent])

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: date

The 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: object

partial(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: ProcessNode

A 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:
  • plug_name (str) – plug to get connections with

  • single (bool) – if True, stop at the first connected plug. Otherwise return the list of all connected plugs.

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: QGraphicsView

Pipeline 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
colored_parameters
scene
__init__()[source]
set_pipeline()[source]
is_logical_view()[source]
set_logical_view()[source]
zoom_in()[source]
zoom_out()[source]
openProcessController()[source]
add_embedded_subpipeline()[source]
onLoadSubPipelineClicked()[source]
onOpenProcessController()[source]
enableNode()[source]
enable_step()[source]
disable_preceding_steps()[source]
disable_following_steps()[source]
enable_preceding_steps()[source]
enable_following_steps()[source]
set_switch_value()[source]
disable_done_steps()[source]
enable_all_steps()[source]
check_files()[source]
auto_dot_node_positions()[source]
save_dot_image_ui()[source]
reset_initial_nodes_positions()[source]
window()[source]
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

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: QLineEdit

A specialized QLineEdit with completion for process name

__init__(parent=None, class_type_check=<function is_process>)[source]
static _execfile(filename)[source]
load_py(filename)[source]
get_processes_or_modules(filename)[source]
on_text_edited(text)[source]
__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.

scene = None

PipelineScene

the main scene.

Type:

type

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
ensure_pipeline(pipeline)[source]

Check that we have a pipeline or a process

_set_pipeline(pipeline)[source]
set_pipeline(pipeline)[source]

Assigns a new pipeline to the view.

closeEvent(event)[source]

Ensure pipeline is released before the widget is closed.

release_pipeline(delete=False)[source]

Releases the pipeline currently viewed (and remove the callbacks)

If delete is 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

_reset_pipeline()[source]
zoom_in()[source]

Zoom the view in, applying a 1.2 zoom factor

zoom_out()[source]

Zoom the view out, applying a 1/1.2 zool factor

edition_enabled()[source]

Get the editable state

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.

is_restricted_edition_mode()[source]

Get the restricted mode status

Returns:

enabled

Return type:

bool

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)

wheelEvent(self, event: QWheelEvent | None)[source]
mousePressEvent(self, event: QMouseEvent | None)[source]
mouseReleaseEvent(self, event: QMouseEvent | None)[source]
mouseMoveEvent(self, event: QMouseEvent | None)[source]
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

openProcessController()[source]
open_node_menu(node_name, process)[source]

right-click popup menu for nodes

emit_export_to_db_scans()[source]
emit_open_filter()[source]
emit_edit_sub_pipeline()[source]
show_optional_inputs()[source]

Added to choose to visualize optional inputs.

show_optional_outputs()[source]

Added to choose to visualize optional outputs.

open_background_menu()[source]

Open the right-click menu when triggered from the pipeline background.

enableNode(checked)[source]
enable_step(step_name, state)[source]
disable_preceding_steps(step_name, dummy)[source]
disable_following_steps(step_name, dummy)[source]
enable_preceding_steps(step_name, dummy)[source]
enable_following_steps(step_name, dummy)[source]
set_switch_value(switch, value, dummy)[source]
disable_done_steps()[source]
enable_all_steps()[source]
check_files()[source]
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:

dict

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.

switch_logical_view()[source]
print_node_positions()[source]
del_node(node_name=None)[source]
export_node_plugs(node_name, inputs=True, outputs=True, optional=False)[source]
export_plugs(inputs=True, outputs=True, optional=False)[source]
export_node_unconnected_mandatory_plugs()[source]
export_node_all_unconnected_plugs()[source]
export_node_unconnected_mandatory_inputs()[source]
export_node_all_unconnected_inputs()[source]
export_node_unconnected_mandatory_outputs()[source]
export_node_all_unconnected_outputs()[source]
export_unconnected_mandatory_plugs()[source]
export_all_unconnected_plugs()[source]
export_unconnected_mandatory_inputs()[source]
export_all_unconnected_inputs()[source]
export_unconnected_mandatory_outputs()[source]
export_all_unconnected_outputs()[source]
_change_step()[source]
class ProcessModuleInput(display_str='process module/name', class_type_check=<function is_process>)[source]

Bases: QDialog

__init__(display_str='process module/name', class_type_check=<function is_process>)[source]
add_process()[source]

Insert a process node in the pipeline. Asks for the process module/name, and the node name before inserting.

add_named_process(proc_module, node_name=None)[source]
add_node()[source]

Insert a custom node in the pipeline. Asks for the node module/name, and the node name before inserting.

add_named_node(node_name, node_module)[source]
class IterativeProcessInput(engine)[source]

Bases: ProcessModuleInput

__init__(engine)[source]
set_plugs(text)[source]
iterative_plugs()[source]
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.

_plug_clicked(name)[source]
_node_delete_clicked(name_node)[source]
get_doc_browser(create=False)[source]
_node_clicked(name, node)[source]
static get_node_html_doc(node)[source]
show_doc(node_name=None)[source]
show_node_doc(node)[source]
_node_clicked_ctrl(name, process)[source]
_plug_right_clicked(name)[source]
class _PlugEdit(show_weak=True, parent=None)[source]

Bases: QDialog

__init__(show_weak=True, parent=None)[source]
_export_plug()[source]
_change_iterative_plug(checked)[source]
_protect_plug(checked)[source]
_enable_plug_completion(checked)[source]
_remove_plug()[source]
_edit_plug()[source]
_prune_plugs()[source]
confirm_erase_pipeline()[source]
new_pipeline()[source]
load_pipeline(filename='', load_pipeline=True)[source]
save_pipeline()[source]

Ask for a filename using the file dialog, and save the pipeline as a XML, JSON or python file.

load_pipeline_parameters(root_path='')[source]

Loading and setting pipeline parameters (inputs and outputs) from a Json file. :return:

save_pipeline_parameters()[source]

Saving pipeline parameters (inputs and outputs) to a Json file. :return:

class populse_mia.user_interface.pop_ups.SettingsEditor(engine, parent=None)[source]

Bases: QDialog

__init__(engine, parent=None)[source]
update_gui()[source]
change_environment(index)[source]
validate()[source]
accept(self)[source]
tab_closed(module, index)[source]
tab_changed(module_name, index)[source]
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
class CursorAction

Bases: int

DoubleClicked = 2
DragDrop = 3
class DragDropMode

Bases: int

DragOnly = 1
DragSelectingState = 2
DraggingState = 1
class DropIndicatorPosition

Bases: int

DropOnly = 2
EditKeyPressed = 8
class EditTrigger

Bases: int

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
class ScrollHint

Bases: int

class ScrollMode

Bases: int

ScrollPerItem = 0
ScrollPerPixel = 1
SelectColumns = 2
SelectItems = 0
SelectRows = 1
SelectedClicked = 4
class SelectionBehavior

Bases: int

class SelectionMode

Bases: int

SingleSelection = 1
class State

Bases: int

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

alternatingRowColors(self) bool
autoScrollMargin(self) int
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

closeEditor(self, editor: QWidget | None, hint: QAbstractItemDelegate.EndEditHint)
closePersistentEditor(self, index: QModelIndex)
commitData(self, editor: QWidget | None)
currentChanged(self, current: QModelIndex, previous: QModelIndex)
currentIndex(self) QModelIndex
dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: Iterable[int] = [])
defaultDropAction(self) Qt.DropAction
dirtyRegionOffset(self) QPoint
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
dragDropOverwriteMode(self) bool
dragEnabled(self) bool
dragEnterEvent(self, e: QDragEnterEvent | None)
dragLeaveEvent(self, e: QDragLeaveEvent | None)
dragMoveEvent(self, e: QDragMoveEvent | None)
dropEvent(self, e: QDropEvent | None)
dropIndicatorPosition(self) QAbstractItemView.DropIndicatorPosition
edit(self, index: QModelIndex)
edit(self, index: QModelIndex, trigger: QAbstractItemView.EditTrigger, event: QEvent | None) bool
editTriggers(self) QAbstractItemView.EditTriggers
editorDestroyed(self, editor: QObject | None)
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

event(self, event: QEvent | None) bool
eventFilter(self, object: QObject | None, event: QEvent | None) bool
executeDelayedItemsLayout(self)
focusInEvent(self, e: QFocusEvent | None)
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, e: QFocusEvent | None)
hasAutoScroll(self) bool
horizontalOffset(self) int
horizontalScrollMode(self) QAbstractItemView.ScrollMode
horizontalScrollbarAction(self, action: int)
horizontalScrollbarValueChanged(self, value: int)
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
inputMethodEvent(self, event: QInputMethodEvent | 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
itemDelegateForColumn(self, column: int) QAbstractItemDelegate | None
itemDelegateForRow(self, row: int) QAbstractItemDelegate | None
keyPressEvent(self, e: QKeyEvent | None)
keyboardSearch(self, search: str | None)
model(self) QAbstractItemModel | None
mouseDoubleClickEvent(self, e: QMouseEvent | None)
mouseMoveEvent(self, e: QMouseEvent | None)
mousePressEvent(self, e: QMouseEvent | None)
mouseReleaseEvent(self, e: QMouseEvent | 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)
resizeEvent(self, e: QResizeEvent | None)
rootIndex(self) QModelIndex
rowsAboutToBeRemoved(self, parent: QModelIndex, start: int, end: int)
rowsInserted(self, parent: QModelIndex, start: int, end: int)
scheduleDelayedItemsLayout(self)
scrollDirtyRegion(self, dx: int, dy: int)
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
setAlternatingRowColors(self, enable: bool)
setAutoScroll(self, enable: bool)
setAutoScrollMargin(self, margin: int)
setCurrentIndex(self, index: QModelIndex)
setDefaultDropAction(self, dropAction: Qt.DropAction)
setDirtyRegion(self, region: QRegion)
setDragDropMode(self, behavior: QAbstractItemView.DragDropMode)
setDragDropOverwriteMode(self, overwrite: bool)
setDragEnabled(self, enable: bool)
setDropIndicatorShown(self, enable: bool)
setEditTriggers(self, triggers: QAbstractItemView.EditTriggers | QAbstractItemView.EditTrigger)
setHorizontalScrollMode(self, mode: QAbstractItemView.ScrollMode)
setIconSize(self, size: QSize)
setIndexWidget(self, index: QModelIndex, widget: QWidget | None)
setItemDelegate(self, delegate: QAbstractItemDelegate | None)
setItemDelegateForColumn(self, column: int, delegate: QAbstractItemDelegate | None)
setItemDelegateForRow(self, row: int, delegate: QAbstractItemDelegate | 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)
setTabKeyNavigation(self, enable: bool)
setTextElideMode(self, mode: Qt.TextElideMode)
setVerticalScrollMode(self, mode: QAbstractItemView.ScrollMode)
showDropIndicator(self) bool
sizeHintForColumn(self, column: int) int
sizeHintForIndex(self, index: QModelIndex) QSize
sizeHintForRow(self, row: int) int
startDrag(self, supportedActions: Qt.DropActions | Qt.DropAction)
state(self) QAbstractItemView.State
tabKeyNavigation(self) bool
textElideMode(self) Qt.TextElideMode
timerEvent(self, e: QTimerEvent | None)
update(self)
update(self, index: QModelIndex) None
updateEditorData(self)
updateEditorGeometries(self)
updateGeometries(self)
verticalOffset(self) int
verticalScrollMode(self) QAbstractItemView.ScrollMode
verticalScrollbarAction(self, action: int)
verticalScrollbarValueChanged(self, value: int)
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

viewportEvent(self, e: QEvent | None) bool
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

class ColorSpec

Bases: int

CustomColor = 1
ManyColor = 2
NormalColor = 0
aboutQt()
activeModalWidget() QWidget | None
activePopupWidget() QWidget | None
activeWindow() QWidget | None
alert(widget: QWidget | None, msecs: int = 0)
allWidgets() List[QWidget]
autoSipEnabled(self) bool
beep()
closeAllWindows()
colorSpec() int
cursorFlashTime() int
desktop() QDesktopWidget | None
doubleClickInterval() int
event(self, a0: QEvent | None) bool
exec() int
exec_() int
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

focusWidget() QWidget | None
font() QFont
font(a0: QWidget | None) QFont
font(className: str | None) QFont
fontMetrics() QFontMetrics
globalStrut() QSize
isEffectEnabled(a0: Qt.UIEffect) bool
keyboardInputInterval() int
notify(self, a0: QObject | None, a1: QEvent | None) bool
palette() QPalette
palette(a0: QWidget | None) QPalette
palette(className: str | None) QPalette
setActiveWindow(act: QWidget | None)
setAutoSipEnabled(self, enabled: bool)
setColorSpec(a0: int)
setCursorFlashTime(a0: int)
setDoubleClickInterval(a0: int)
setEffectEnabled(a0: Qt.UIEffect, enabled: bool = True)
setFont(a0: QFont, className: str | None = None)
setGlobalStrut(a0: QSize)
setKeyboardInputInterval(a0: int)
setPalette(a0: QPalette, className: str | None = None)
setStartDragDistance(l: int)
setStartDragTime(ms: int)
setStyle(a0: QStyle | None)
setStyle(a0: str | None) QStyle | None
setStyleSheet(self, sheet: str | None)
setWheelScrollLines(a0: int)
setWindowIcon(icon: QIcon)
startDragDistance() int
startDragTime() int
style() QStyle | None
styleSheet(self) str
topLevelAt(p: QPoint) QWidget | None
topLevelAt(x: int, y: int) QWidget | None
topLevelWidgets() List[QWidget]
wheelScrollLines() int
widgetAt(p: QPoint) QWidget | None
widgetAt(x: int, y: int) QWidget | None
windowIcon() QIcon
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)
event(self, e: QEvent | None) bool
hitButton(self, pos: QPoint) bool
initStyleOption(self, option: QStyleOptionButton | None)
isTristate(self) bool
minimumSizeHint(self) QSize
mouseMoveEvent(self, a0: QMouseEvent | None)
nextCheckState(self)
paintEvent(self, a0: QPaintEvent | None)
setCheckState(self, state: Qt.CheckState)
setTristate(self, on: bool = True)
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
class InsertPolicy

Bases: int

NoInsert = 0
class SizeAdjustPolicy

Bases: int

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
addItems(self, texts: Iterable[str | None])
changeEvent(self, e: QEvent | None)
clear(self)
clearEditText(self)
completer(self) QCompleter | None
contextMenuEvent(self, e: QContextMenuEvent | None)
count(self) int
currentData(self, role: int = Qt.ItemDataRole.UserRole) Any
currentIndex(self) int
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

currentText(self) str
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

duplicatesEnabled(self) bool
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

event(self, event: QEvent | None) bool
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
focusInEvent(self, e: QFocusEvent | None)
focusOutEvent(self, e: QFocusEvent | None)
hasFrame(self) bool
hideEvent(self, e: QHideEvent | None)
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
initStyleOption(self, option: QStyleOptionComboBox | None)
inputMethodEvent(self, a0: QInputMethodEvent | None)
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
insertItems(self, index: int, texts: Iterable[str | None])
insertPolicy(self) QComboBox.InsertPolicy
insertSeparator(self, index: int)
isEditable(self) bool
itemData(self, index: int, role: int = Qt.UserRole) Any
itemDelegate(self) QAbstractItemDelegate | None
itemIcon(self, index: int) QIcon
itemText(self, index: int) str
keyPressEvent(self, e: QKeyEvent | None)
keyReleaseEvent(self, e: QKeyEvent | None)
lineEdit(self) QLineEdit | None
maxCount(self) int
maxVisibleItems(self) int
minimumContentsLength(self) int
minimumSizeHint(self) QSize
model(self) QAbstractItemModel | None
modelColumn(self) int
mousePressEvent(self, e: QMouseEvent | None)
mouseReleaseEvent(self, e: QMouseEvent | None)
paintEvent(self, e: QPaintEvent | None)
placeholderText(self) str
removeItem(self, index: int)
resizeEvent(self, e: QResizeEvent | None)
rootModelIndex(self) QModelIndex
setCompleter(self, c: QCompleter | None)
setCurrentIndex(self, index: int)
setCurrentText(self, text: str | None)
setDuplicatesEnabled(self, enable: bool)
setEditText(self, text: str | None)
setEditable(self, editable: bool)
setFrame(self, a0: bool)
setIconSize(self, size: QSize)
setInsertPolicy(self, policy: QComboBox.InsertPolicy)
setItemData(self, index: int, value: Any, role: int = Qt.ItemDataRole.UserRole)
setItemDelegate(self, delegate: QAbstractItemDelegate | None)
setItemIcon(self, index: int, icon: QIcon)
setItemText(self, index: int, text: str | None)
setLineEdit(self, edit: QLineEdit | None)
setMaxCount(self, max: int)
setMaxVisibleItems(self, maxItems: int)
setMinimumContentsLength(self, characters: int)
setModel(self, model: QAbstractItemModel | None)
setModelColumn(self, visibleColumn: int)
setPlaceholderText(self, placeholderText: str | None)
setRootModelIndex(self, index: QModelIndex)
setSizeAdjustPolicy(self, policy: QComboBox.SizeAdjustPolicy)
setValidator(self, v: QValidator | None)
setView(self, itemView: QAbstractItemView | None)
showEvent(self, e: QShowEvent | 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

validator(self) QValidator | None
view(self) QAbstractItemView | None
wheelEvent(self, e: QWheelEvent | None)
class populse_mia.user_interface.pop_ups.QDialog(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())

Bases: QWidget

Accepted = 1
class DialogCode

Bases: int

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

closeEvent(self, a0: QCloseEvent | None)
contextMenuEvent(self, a0: QContextMenuEvent | None)
done(self, a0: int)
eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
exec(self) int
exec_(self) int
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

isSizeGripEnabled(self) bool
keyPressEvent(self, a0: QKeyEvent | None)
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

resizeEvent(self, a0: QResizeEvent | None)
result(self) int
setModal(self, modal: bool)
setResult(self, r: int)
setSizeGripEnabled(self, a0: bool)
setVisible(self, visible: bool)
showEvent(self, a0: QShowEvent | None)
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
class ButtonLayout

Bases: int

class ButtonRole

Bases: int

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 StandardButton

Bases: int

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
buttons(self) List[QAbstractButton]
centerButtons(self) bool
changeEvent(self, event: QEvent | None)
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

event(self, event: QEvent | None) bool
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

removeButton(self, button: QAbstractButton | None)
setCenterButtons(self, center: bool)
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
class AcceptMode

Bases: int

AcceptOpen = 0
AcceptSave = 1
AnyFile = 0
Detail = 0
class DialogLabel

Bases: int

Directory = 2
DirectoryOnly = 4
DontConfirmOverwrite = 4
DontUseCustomDirectoryIcons = 128
DontUseNativeDialog = 16
DontUseSheet = 8
ExistingFile = 1
ExistingFiles = 3
class FileMode

Bases: int

FileName = 1
FileType = 2
HideNameFilterDetails = 64
List = 1
LookIn = 0
class Option

Bases: int

class Options
class Options(f: QFileDialog.Options | QFileDialog.Option)
class Options(a0: QFileDialog.Options)

Bases: simplewrapper

ReadOnly = 32
Reject = 4
ShowDirsOnly = 1
class ViewMode

Bases: int

accept(self)
acceptMode(self) QFileDialog.AcceptMode
changeEvent(self, e: QEvent | None)
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

defaultSuffix(self) str
directory(self) QDir
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

done(self, result: int)
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]
history(self) List[str]
iconProvider(self) QFileIconProvider | None
itemDelegate(self) QAbstractItemDelegate | None
labelText(self, label: QFileDialog.DialogLabel) str
mimeTypeFilters(self) List[str]
nameFilters(self) List[str]
open(self)
open(self, slot: PYQT_SLOT) None
options(self) QFileDialog.Options
proxyModel(self) QAbstractProxyModel | None
restoreState(self, state: QByteArray | bytes | bytearray) bool
saveFileContent(fileContent: QByteArray | bytes | bytearray, fileNameHint: str | None = '')
saveState(self) QByteArray
selectFile(self, filename: str | None)
selectMimeTypeFilter(self, filter: str | None)
selectNameFilter(self, filter: str | None)
selectUrl(self, url: QUrl)
selectedFiles(self) List[str]
selectedMimeTypeFilter(self) str
selectedNameFilter(self) str
selectedUrls(self) List[QUrl]
setAcceptMode(self, mode: QFileDialog.AcceptMode)
setDefaultSuffix(self, suffix: str | None)
setDirectory(self, directory: str | None)
setDirectory(self, adirectory: QDir) None
setDirectoryUrl(self, directory: QUrl)
setFileMode(self, mode: QFileDialog.FileMode)
setFilter(self, filters: QDir.Filters | QDir.Filter)
setHistory(self, paths: Iterable[str | None])
setIconProvider(self, provider: QFileIconProvider | None)
setItemDelegate(self, delegate: QAbstractItemDelegate | None)
setLabelText(self, label: QFileDialog.DialogLabel, text: str | None)
setMimeTypeFilters(self, filters: Iterable[str | None])
setNameFilter(self, filter: str | None)
setNameFilters(self, filters: Iterable[str | None])
setOption(self, option: QFileDialog.Option, on: bool = True)
setOptions(self, options: QFileDialog.Options | QFileDialog.Option)
setProxyModel(self, model: QAbstractProxyModel | None)
setSidebarUrls(self, urls: Iterable[QUrl])
setSupportedSchemes(self, schemes: Iterable[str | None])
setViewMode(self, mode: QFileDialog.ViewMode)
setVisible(self, visible: bool)
sidebarUrls(self) List[QUrl]
supportedSchemes(self) List[str]
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
class FieldGrowthPolicy

Bases: int

FieldRole = 1
FieldsStayAtSizeHint = 0
class ItemRole

Bases: int

LabelRole = 0
class RowWrapPolicy

Bases: int

SpanningRole = 2
class TakeRowResult
class TakeRowResult(a0: QFormLayout.TakeRowResult)

Bases: simplewrapper

fieldItem
labelItem
WrapAllRows = 2
WrapLongRows = 1
addItem(self, item: QLayoutItem | None)
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
count(self) int
expandingDirections(self) Qt.Orientations
fieldGrowthPolicy(self) QFormLayout.FieldGrowthPolicy
formAlignment(self) Qt.Alignment
getItemPosition(self, index: int)
getLayoutPosition(self, layout: QLayout | None)
getWidgetPosition(self, widget: QWidget | None)
hasHeightForWidth(self) bool
heightForWidth(self, width: int) int
horizontalSpacing(self) int
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
rowCount(self) int
rowWrapPolicy(self) QFormLayout.RowWrapPolicy
setFieldGrowthPolicy(self, policy: QFormLayout.FieldGrowthPolicy)
setFormAlignment(self, alignment: Qt.Alignment | Qt.AlignmentFlag)
setGeometry(self, rect: QRect)
setHorizontalSpacing(self, spacing: int)
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)
setSpacing(self, a0: int)
setVerticalSpacing(self, spacing: int)
setWidget(self, row: int, role: QFormLayout.ItemRole, widget: QWidget | None)
sizeHint(self) QSize
spacing(self) int
takeAt(self, index: int) QLayoutItem | None
takeRow(self, row: int) QFormLayout.TakeRowResult
takeRow(self, widget: QWidget | None) QFormLayout.TakeRowResult
takeRow(self, layout: QLayout | None) QFormLayout.TakeRowResult
verticalSpacing(self) int
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
changeEvent(self, a0: QEvent | None)
childEvent(self, a0: QChildEvent | None)
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

event(self, a0: QEvent | None) bool
focusInEvent(self, a0: QFocusEvent | None)
initStyleOption(self, option: QStyleOptionGroupBox | None)
isCheckable(self) bool
isChecked(self) bool
isFlat(self) bool
minimumSizeHint(self) QSize
mouseMoveEvent(self, event: QMouseEvent | None)
mousePressEvent(self, event: QMouseEvent | None)
mouseReleaseEvent(self, event: QMouseEvent | None)
paintEvent(self, a0: QPaintEvent | None)
resizeEvent(self, a0: QResizeEvent | None)
setAlignment(self, a0: int)
setCheckable(self, b: bool)
setChecked(self, b: bool)
setFlat(self, b: bool)
setTitle(self, a0: str | None)
title(self) str
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
class ResizeMode

Bases: int

ResizeToContents = 3
Stretch = 1
cascadingSectionResizes(self) bool
count(self) int
currentChanged(self, current: QModelIndex, old: QModelIndex)
dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: Iterable[int] = [])
defaultAlignment(self) Qt.Alignment
defaultSectionSize(self) int
event(self, e: QEvent | None) bool
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)
hiddenSectionCount(self) int
hideSection(self, alogicalIndex: int)
highlightSections(self) bool
horizontalOffset(self) int
indexAt(self, p: QPoint) QModelIndex
initStyleOption(self, option: QStyleOptionHeader | None)
initialize(self)
initializeSections(self)
initializeSections(self, start: int, end: int) None
isFirstSectionMovable(self) bool
isIndexHidden(self, index: QModelIndex) bool
isSectionHidden(self, logicalIndex: int) bool
isSortIndicatorShown(self) bool
length(self) int
logicalIndex(self, visualIndex: int) int
logicalIndexAt(self, position: int) int
logicalIndexAt(self, ax: int, ay: int) int
logicalIndexAt(self, apos: QPoint) int
maximumSectionSize(self) int
minimumSectionSize(self) int
mouseDoubleClickEvent(self, e: QMouseEvent | None)
mouseMoveEvent(self, e: QMouseEvent | None)
mousePressEvent(self, e: QMouseEvent | None)
mouseReleaseEvent(self, e: QMouseEvent | None)
moveCursor(self, a0: QAbstractItemView.CursorAction, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) QModelIndex
moveSection(self, from_: int, to: int)
offset(self) int
orientation(self) Qt.Orientation
paintEvent(self, e: QPaintEvent | None)
paintSection(self, painter: QPainter | None, rect: QRect, logicalIndex: int)
reset(self)
resetDefaultSectionSize(self)
resizeContentsPrecision(self) int
resizeSection(self, logicalIndex: int, size: int)
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
scrollContentsBy(self, dx: int, dy: int)
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

sectionPosition(self, logicalIndex: int) int
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

sectionSize(self, logicalIndex: int) int
sectionSizeFromContents(self, logicalIndex: int) QSize
sectionSizeHint(self, logicalIndex: int) int
sectionViewportPosition(self, logicalIndex: int) int
sectionsAboutToBeRemoved(self, parent: QModelIndex, logicalFirst: int, logicalLast: int)
sectionsClickable(self) bool
sectionsHidden(self) bool
sectionsInserted(self, parent: QModelIndex, logicalFirst: int, logicalLast: int)
sectionsMovable(self) bool
sectionsMoved(self) bool
setCascadingSectionResizes(self, enable: bool)
setDefaultAlignment(self, alignment: Qt.Alignment | Qt.AlignmentFlag)
setDefaultSectionSize(self, size: int)
setFirstSectionMovable(self, movable: bool)
setHighlightSections(self, highlight: bool)
setMaximumSectionSize(self, size: int)
setMinimumSectionSize(self, size: int)
setModel(self, model: QAbstractItemModel | None)
setOffset(self, offset: int)
setOffsetToLastSection(self)
setOffsetToSectionPosition(self, visualIndex: int)
setResizeContentsPrecision(self, precision: int)
setSectionHidden(self, logicalIndex: int, hide: bool)
setSectionResizeMode(self, logicalIndex: int, mode: QHeaderView.ResizeMode)
setSectionResizeMode(self, mode: QHeaderView.ResizeMode) None
setSectionsClickable(self, clickable: bool)
setSectionsMovable(self, movable: bool)
setSelection(self, rect: QRect, flags: QItemSelectionModel.SelectionFlags | QItemSelectionModel.SelectionFlag)
setSortIndicator(self, logicalIndex: int, order: Qt.SortOrder)
setSortIndicatorShown(self, show: bool)
setStretchLastSection(self, stretch: bool)
setVisible(self, v: bool)
showSection(self, alogicalIndex: int)
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
sortIndicatorSection(self) int
stretchLastSection(self) bool
stretchSectionCount(self) int
swapSections(self, first: int, second: int)
updateGeometries(self)
updateSection(self, logicalIndex: int)
verticalOffset(self) int
viewportEvent(self, e: QEvent | None) bool
visualIndex(self, logicalIndex: int) int
visualIndexAt(self, position: int) int
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 InputDialogOption

Bases: int

class InputDialogOptions
class InputDialogOptions(f: QInputDialog.InputDialogOptions | QInputDialog.InputDialogOption)
class InputDialogOptions(a0: QInputDialog.InputDialogOptions)

Bases: simplewrapper

class InputMode

Bases: int

IntInput = 1
NoButtons = 1
TextInput = 0
UseListViewForComboBoxItems = 2
UsePlainTextEditForTextInput = 4
cancelButtonText(self) str
comboBoxItems(self) List[str]
done(self, result: int)
doubleDecimals(self) int
doubleMaximum(self) float
doubleMinimum(self) float
doubleStep(self) float
doubleValue(self) float
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
intMaximum(self) int
intMinimum(self) int
intStep(self) int
intValue(self) int
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

isComboBoxEditable(self) bool
labelText(self) str
minimumSizeHint(self) QSize
okButtonText(self) str
open(self)
open(self, slot: PYQT_SLOT) None
options(self) QInputDialog.InputDialogOptions
setCancelButtonText(self, text: str | None)
setComboBoxEditable(self, editable: bool)
setComboBoxItems(self, items: Iterable[str | None])
setDoubleDecimals(self, decimals: int)
setDoubleMaximum(self, max: float)
setDoubleMinimum(self, min: float)
setDoubleRange(self, min: float, max: float)
setDoubleStep(self, step: float)
setDoubleValue(self, value: float)
setInputMode(self, mode: QInputDialog.InputMode)
setIntMaximum(self, max: int)
setIntMinimum(self, min: int)
setIntRange(self, min: int, max: int)
setIntStep(self, step: int)
setIntValue(self, value: int)
setLabelText(self, text: str | None)
setOkButtonText(self, text: str | None)
setOption(self, option: QInputDialog.InputDialogOption, on: bool = True)
setOptions(self, options: QInputDialog.InputDialogOptions | QInputDialog.InputDialogOption)
setTextEchoMode(self, mode: QLineEdit.EchoMode)
setTextValue(self, text: str | None)
setVisible(self, visible: bool)
sizeHint(self) QSize
testOption(self, option: QInputDialog.InputDialogOption) bool
textEchoMode(self) QLineEdit.EchoMode
textValue(self) str
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
buddy(self) QWidget | None
changeEvent(self, a0: QEvent | None)
clear(self)
contextMenuEvent(self, ev: QContextMenuEvent | None)
event(self, e: QEvent | None) bool
focusInEvent(self, ev: QFocusEvent | None)
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, ev: QFocusEvent | None)
hasScaledContents(self) bool
hasSelectedText(self) bool
heightForWidth(self, a0: int) int
indent(self) int
keyPressEvent(self, ev: QKeyEvent | None)
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

margin(self) int
minimumSizeHint(self) QSize
mouseMoveEvent(self, ev: QMouseEvent | None)
mousePressEvent(self, ev: QMouseEvent | None)
mouseReleaseEvent(self, ev: QMouseEvent | None)
movie(self) QMovie | None
paintEvent(self, a0: QPaintEvent | None)
picture(self) QPicture | None
pixmap(self) QPixmap | None
selectedText(self) str
selectionStart(self) int
setAlignment(self, a0: Qt.Alignment | Qt.AlignmentFlag)
setBuddy(self, a0: QWidget | None)
setIndent(self, a0: int)
setMargin(self, a0: int)
setMovie(self, movie: QMovie | None)
setNum(self, a0: float)
setNum(self, a0: int) None
setPicture(self, a0: QPicture)
setPixmap(self, a0: QPixmap)
setScaledContents(self, a0: bool)
setSelection(self, a0: int, a1: int)
setText(self, a0: str | None)
setTextFormat(self, a0: Qt.TextFormat)
setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)
setWordWrap(self, on: bool)
sizeHint(self) QSize
text(self) str
textFormat(self) Qt.TextFormat
textInteractionFlags(self) Qt.TextInteractionFlags
wordWrap(self) bool
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

class ActionPosition

Bases: int

class EchoMode

Bases: int

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)
changeEvent(self, a0: QEvent | None)
clear(self)
completer(self) QCompleter | None
contextMenuEvent(self, a0: QContextMenuEvent | None)
copy(self)
createStandardContextMenu(self) QMenu | None
cursorBackward(self, mark: bool, steps: int = 1)
cursorForward(self, mark: bool, steps: int = 1)
cursorMoveStyle(self) Qt.CursorMoveStyle
cursorPosition(self) int
cursorPositionAt(self, pos: QPoint) int
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
cursorWordBackward(self, mark: bool)
cursorWordForward(self, mark: bool)
cut(self)
del_(self)
deselect(self)
displayText(self) str
dragEnabled(self) bool
dragEnterEvent(self, a0: QDragEnterEvent | None)
dragLeaveEvent(self, e: QDragLeaveEvent | None)
dragMoveEvent(self, e: QDragMoveEvent | None)
dropEvent(self, a0: QDropEvent | None)
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

end(self, mark: bool)
event(self, a0: QEvent | None) bool
focusInEvent(self, a0: QFocusEvent | None)
focusOutEvent(self, a0: QFocusEvent | None)
getTextMargins(self)
hasAcceptableInput(self) bool
hasFrame(self) bool
hasSelectedText(self) bool
home(self, mark: bool)
initStyleOption(self, option: QStyleOptionFrame | None)
inputMask(self) str
inputMethodEvent(self, a0: QInputMethodEvent | None)
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

insert(self, a0: str | None)
isClearButtonEnabled(self) bool
isModified(self) bool
isReadOnly(self) bool
isRedoAvailable(self) bool
isUndoAvailable(self) bool
keyPressEvent(self, a0: QKeyEvent | None)
maxLength(self) int
minimumSizeHint(self) QSize
mouseDoubleClickEvent(self, a0: QMouseEvent | None)
mouseMoveEvent(self, a0: QMouseEvent | None)
mousePressEvent(self, a0: QMouseEvent | None)
mouseReleaseEvent(self, a0: QMouseEvent | None)
paintEvent(self, a0: QPaintEvent | None)
paste(self)
placeholderText(self) str
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)
selectedText(self) str
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

selectionEnd(self) int
selectionLength(self) int
selectionStart(self) int
setAlignment(self, flag: Qt.Alignment | Qt.AlignmentFlag)
setClearButtonEnabled(self, enable: bool)
setCompleter(self, completer: QCompleter | None)
setCursorMoveStyle(self, style: Qt.CursorMoveStyle)
setCursorPosition(self, a0: int)
setDragEnabled(self, b: bool)
setEchoMode(self, a0: QLineEdit.EchoMode)
setFrame(self, a0: bool)
setInputMask(self, inputMask: str | None)
setMaxLength(self, a0: int)
setModified(self, a0: bool)
setPlaceholderText(self, a0: str | None)
setReadOnly(self, a0: bool)
setSelection(self, a0: int, a1: int)
setText(self, a0: str | None)
setTextMargins(self, left: int, top: int, right: int, bottom: int)
setTextMargins(self, margins: QMargins) None
setValidator(self, a0: QValidator | None)
sizeHint(self) QSize
text(self) str
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)
validator(self) QValidator | None
class populse_mia.user_interface.pop_ups.QListWidget(parent: QWidget | None = None)

Bases: QListView

addItem(self, aitem: QListWidgetItem | None)
addItem(self, label: str | None) None
addItems(self, labels: Iterable[str | None])
clear(self)
closePersistentEditor(self, item: QListWidgetItem | None)
count(self) int
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

currentRow(self) int
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

dropEvent(self, event: QDropEvent | None)
dropMimeData(self, index: int, data: QMimeData | None, action: Qt.DropAction) bool
editItem(self, item: QListWidgetItem | None)
event(self, e: QEvent | None) bool
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
insertItems(self, row: int, labels: Iterable[str | None])
isPersistentEditorOpen(self, item: QListWidgetItem | None) bool
isSortingEnabled(self) 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
mimeTypes(self) List[str]
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)
setSortingEnabled(self, enable: bool)
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

class ItemType

Bases: int

Type = 0
UserType = 1000
background(self) QBrush
checkState(self) Qt.CheckState
clone(self) QListWidgetItem | None
data(self, role: int) Any
flags(self) Qt.ItemFlags
font(self) QFont
foreground(self) QBrush
icon(self) QIcon
isHidden(self) bool
isSelected(self) bool
listWidget(self) QListWidget | None
read(self, in_: QDataStream)
setBackground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)
setCheckState(self, state: Qt.CheckState)
setData(self, role: int, value: Any)
setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)
setFont(self, afont: QFont)
setForeground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)
setHidden(self, ahide: bool)
setIcon(self, aicon: QIcon)
setSelected(self, aselect: bool)
setSizeHint(self, size: QSize)
setStatusTip(self, astatusTip: str | None)
setText(self, atext: str | None)
setTextAlignment(self, alignment: int)
setToolTip(self, atoolTip: str | None)
setWhatsThis(self, awhatsThis: str | None)
sizeHint(self) QSize
statusTip(self) str
text(self) str
textAlignment(self) int
toolTip(self) str
type(self) int
whatsThis(self) str
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
class ButtonRole

Bases: int

Cancel = 4194304
Close = 2097152
Critical = 3
Default = 256
DestructiveRole = 2
Discard = 8388608
Escape = 512
FirstButton = 1024
FlagMask = 768
Help = 16777216
HelpRole = 4
class Icon

Bases: int

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 StandardButton

Bases: int

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
about(parent: QWidget | None, caption: str | None, text: str | None)
aboutQt(parent: QWidget | None, title: str | None = '')
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
buttons(self) List[QAbstractButton]
changeEvent(self, a0: QEvent | None)
checkBox(self) QCheckBox | None
clickedButton(self) QAbstractButton | None
closeEvent(self, a0: QCloseEvent | None)
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
detailedText(self) str
escapeButton(self) QAbstractButton | None
event(self, e: QEvent | None) bool
icon(self) QMessageBox.Icon
iconPixmap(self) QPixmap
information(parent: QWidget | None, title: str | None, text: str | None, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) QMessageBox.StandardButton
informativeText(self) str
keyPressEvent(self, a0: QKeyEvent | None)
open(self)
open(self, slot: PYQT_SLOT) None
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
removeButton(self, button: QAbstractButton | None)
resizeEvent(self, a0: QResizeEvent | None)
setCheckBox(self, cb: QCheckBox | None)
setDefaultButton(self, button: QPushButton | None)
setDefaultButton(self, button: QMessageBox.StandardButton) None
setDetailedText(self, text: str | None)
setEscapeButton(self, button: QAbstractButton | None)
setEscapeButton(self, button: QMessageBox.StandardButton) None
setIcon(self, a0: QMessageBox.Icon)
setIconPixmap(self, a0: QPixmap)
setInformativeText(self, text: str | None)
setStandardButtons(self, buttons: QMessageBox.StandardButtons | QMessageBox.StandardButton)
setText(self, a0: str | None)
setTextFormat(self, a0: Qt.TextFormat)
setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)
setWindowModality(self, windowModality: Qt.WindowModality)
setWindowTitle(self, title: str | None)
showEvent(self, a0: QShowEvent | None)
standardButton(self, button: QAbstractButton | None) QMessageBox.StandardButton
standardButtons(self) QMessageBox.StandardButtons
standardIcon(icon: QMessageBox.Icon) QPixmap
text(self) str
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

class LineWrapMode

Bases: int

NoWrap = 0
WidgetWidth = 1
anchorAt(self, pos: QPoint) str
appendHtml(self, html: str | None)
appendPlainText(self, text: str | None)
backgroundVisible(self) bool
blockBoundingGeometry(self, block: QTextBlock) QRectF
blockBoundingRect(self, block: QTextBlock) QRectF
blockCount(self) int
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

canInsertFromMimeData(self, source: QMimeData | None) bool
canPaste(self) bool
centerCursor(self)
centerOnScroll(self) bool
changeEvent(self, e: QEvent | None)
clear(self)
contentOffset(self) QPointF
contextMenuEvent(self, e: QContextMenuEvent | None)
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

createMimeDataFromSelection(self) QMimeData | None
createStandardContextMenu(self) QMenu | None
createStandardContextMenu(self, position: QPoint) QMenu | None
currentCharFormat(self) QTextCharFormat
cursorForPosition(self, pos: QPoint) QTextCursor
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
cursorWidth(self) int
cut(self)
document(self) QTextDocument | None
documentTitle(self) str
dragEnterEvent(self, e: QDragEnterEvent | None)
dragLeaveEvent(self, e: QDragLeaveEvent | None)
dragMoveEvent(self, e: QDragMoveEvent | None)
dropEvent(self, e: QDropEvent | None)
ensureCursorVisible(self)
event(self, e: QEvent | None) bool
extraSelections(self) List[QTextEdit.ExtraSelection]
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
focusInEvent(self, e: QFocusEvent | None)
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, e: QFocusEvent | None)
getPaintContext(self) QAbstractTextDocumentLayout.PaintContext
inputMethodEvent(self, a0: QInputMethodEvent | None)
inputMethodQuery(self, property: Qt.InputMethodQuery) Any
inputMethodQuery(self, query: Qt.InputMethodQuery, argument: Any) Any
insertFromMimeData(self, source: QMimeData | None)
insertPlainText(self, text: str | None)
isReadOnly(self) bool
isUndoRedoEnabled(self) bool
keyPressEvent(self, e: QKeyEvent | None)
keyReleaseEvent(self, e: QKeyEvent | None)
lineWrapMode(self) QPlainTextEdit.LineWrapMode
loadResource(self, type: int, name: QUrl) Any
maximumBlockCount(self) int
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

mouseDoubleClickEvent(self, e: QMouseEvent | None)
mouseMoveEvent(self, e: QMouseEvent | None)
mousePressEvent(self, e: QMouseEvent | None)
mouseReleaseEvent(self, e: QMouseEvent | None)
moveCursor(self, operation: QTextCursor.MoveOperation, mode: QTextCursor.MoveMode = QTextCursor.MoveAnchor)
overwriteMode(self) bool
paintEvent(self, e: QPaintEvent | None)
paste(self)
placeholderText(self) str
print(self, printer: QPagedPaintDevice | None)
print_(self, printer: QPagedPaintDevice | None)
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

resizeEvent(self, e: QResizeEvent | None)
scrollContentsBy(self, dx: int, dy: int)
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

setBackgroundVisible(self, visible: bool)
setCenterOnScroll(self, enabled: bool)
setCurrentCharFormat(self, format: QTextCharFormat)
setCursorWidth(self, width: int)
setDocument(self, document: QTextDocument | None)
setDocumentTitle(self, title: str | None)
setExtraSelections(self, selections: Iterable[QTextEdit.ExtraSelection])
setLineWrapMode(self, mode: QPlainTextEdit.LineWrapMode)
setMaximumBlockCount(self, maximum: int)
setOverwriteMode(self, overwrite: bool)
setPlaceholderText(self, placeholderText: str | None)
setPlainText(self, text: str | None)
setReadOnly(self, ro: bool)
setTabChangesFocus(self, b: bool)
setTabStopDistance(self, distance: float)
setTabStopWidth(self, width: int)
setTextCursor(self, cursor: QTextCursor)
setTextInteractionFlags(self, flags: Qt.TextInteractionFlags | Qt.TextInteractionFlag)
setUndoRedoEnabled(self, enable: bool)
setWordWrapMode(self, policy: QTextOption.WrapMode)
showEvent(self, a0: QShowEvent | None)
tabChangesFocus(self) bool
tabStopDistance(self) float
tabStopWidth(self) int
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
timerEvent(self, e: QTimerEvent | None)
toPlainText(self) str
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

wheelEvent(self, e: QWheelEvent | None)
wordWrapMode(self) QTextOption.WrapMode
zoomIn(self, range: int = 1)
zoomOut(self, range: int = 1)
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

autoDefault(self) bool
event(self, e: QEvent | None) bool
focusInEvent(self, a0: QFocusEvent | None)
focusOutEvent(self, a0: QFocusEvent | None)
hitButton(self, pos: QPoint) bool
initStyleOption(self, option: QStyleOptionButton | None)
isDefault(self) bool
isFlat(self) bool
keyPressEvent(self, a0: QKeyEvent | None)
menu(self) QMenu | None
minimumSizeHint(self) QSize
paintEvent(self, a0: QPaintEvent | None)
setAutoDefault(self, a0: bool)
setDefault(self, a0: bool)
setFlat(self, a0: bool)
setMenu(self, menu: QMenu | None)
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

event(self, e: QEvent | None) bool
hitButton(self, a0: QPoint) bool
initStyleOption(self, button: QStyleOptionButton | None)
minimumSizeHint(self) QSize
mouseMoveEvent(self, a0: QMouseEvent | None)
paintEvent(self, a0: QPaintEvent | None)
sizeHint(self) QSize
class populse_mia.user_interface.pop_ups.QScrollArea(parent: QWidget | None = None)

Bases: QAbstractScrollArea

alignment(self) Qt.Alignment
ensureVisible(self, x: int, y: int, xMargin: int = 50, yMargin: int = 50)
ensureWidgetVisible(self, childWidget: QWidget | None, xMargin: int = 50, yMargin: int = 50)
event(self, a0: QEvent | None) bool
eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
focusNextPrevChild(self, next: bool) bool
resizeEvent(self, a0: QResizeEvent | None)
scrollContentsBy(self, dx: int, dy: int)
setAlignment(self, a0: Qt.Alignment | Qt.AlignmentFlag)
setWidget(self, w: QWidget | None)
setWidgetResizable(self, resizable: bool)
sizeHint(self) QSize
takeWidget(self) QWidget | None
viewportSizeHint(self) QSize
widget(self) QWidget | None
widgetResizable(self) bool
class populse_mia.user_interface.pop_ups.QSpinBox(parent: QWidget | None = None)

Bases: QAbstractSpinBox

cleanText(self) str
displayIntegerBase(self) int
event(self, e: QEvent | None) bool
fixup(self, str: str | None) str
maximum(self) int
minimum(self) int
prefix(self) str
setDisplayIntegerBase(self, base: int)
setMaximum(self, max: int)
setMinimum(self, min: int)
setPrefix(self, p: str | None)
setRange(self, min: int, max: int)
setSingleStep(self, val: int)
setStepType(self, stepType: QAbstractSpinBox.StepType)
setSuffix(self, s: str | None)
setValue(self, val: int)
singleStep(self) int
stepType(self) QAbstractSpinBox.StepType
suffix(self) str
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

textFromValue(self, v: int) str
validate(self, input: str | None, pos: int)
value(self) int
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

valueFromText(self, text: str | None) int
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

addWidget(self, widget: QWidget | None)
changeEvent(self, a0: QEvent | None)
childEvent(self, a0: QChildEvent | None)
childrenCollapsible(self) bool
closestLegalPosition(self, a0: int, a1: int) int
count(self) int
createHandle(self) QSplitterHandle | None
event(self, a0: QEvent | None) bool
getRange(self, index: int)
handle(self, index: int) QSplitterHandle | None
handleWidth(self) int
indexOf(self, w: QWidget | None) int
insertWidget(self, index: int, widget: QWidget | None)
isCollapsible(self, index: int) bool
minimumSizeHint(self) QSize
moveSplitter(self, pos: int, index: int)
opaqueResize(self) bool
orientation(self) Qt.Orientation
refresh(self)
replaceWidget(self, index: int, widget: QWidget | None) QWidget | None
resizeEvent(self, a0: QResizeEvent | None)
restoreState(self, state: QByteArray | bytes | bytearray) bool
saveState(self) QByteArray
setChildrenCollapsible(self, a0: bool)
setCollapsible(self, index: int, a1: bool)
setHandleWidth(self, a0: int)
setOpaqueResize(self, opaque: bool = True)
setOrientation(self, a0: Qt.Orientation)
setRubberBand(self, position: int)
setSizes(self, list: Iterable[int])
setStretchFactor(self, index: int, stretch: int)
sizeHint(self) QSize
sizes(self) List[int]
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

widget(self, index: int) QWidget | None
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

cellWidget(self, row: int, column: int) QWidget | None
clear(self)
clearContents(self)
closePersistentEditor(self, item: QTableWidgetItem | None)
column(self, item: QTableWidgetItem | None) int
columnCount(self) 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

currentColumn(self) int
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

currentRow(self) int
dropEvent(self, event: QDropEvent | None)
dropMimeData(self, row: int, column: int, data: QMimeData | None, action: Qt.DropAction) bool
editItem(self, item: QTableWidgetItem | None)
event(self, e: QEvent | None) bool
findItems(self, text: str | None, flags: Qt.MatchFlags | Qt.MatchFlag) List[QTableWidgetItem]
horizontalHeaderItem(self, column: int) QTableWidgetItem | None
indexFromItem(self, item: QTableWidgetItem | None) QModelIndex
insertColumn(self, column: int)
insertRow(self, row: int)
isPersistentEditorOpen(self, item: QTableWidgetItem | None) bool
isSortingEnabled(self) 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
mimeTypes(self) List[str]
openPersistentEditor(self, item: QTableWidgetItem | None)
removeCellWidget(self, arow: int, acolumn: int)
removeColumn(self, column: int)
removeRow(self, row: int)
row(self, item: QTableWidgetItem | None) int
rowCount(self) int
scrollToItem(self, item: QTableWidgetItem | None, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)
selectedItems(self) List[QTableWidgetItem]
selectedRanges(self) List[QTableWidgetSelectionRange]
setCellWidget(self, row: int, column: int, widget: QWidget | None)
setColumnCount(self, columns: int)
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)
setHorizontalHeaderLabels(self, labels: Iterable[str | None])
setItem(self, row: int, column: int, item: QTableWidgetItem | None)
setItemPrototype(self, item: QTableWidgetItem | None)
setModel(self, model: QAbstractItemModel | None)
setRangeSelected(self, range: QTableWidgetSelectionRange, select: bool)
setRowCount(self, rows: int)
setSortingEnabled(self, enable: bool)
setVerticalHeaderItem(self, row: int, item: QTableWidgetItem | None)
setVerticalHeaderLabels(self, labels: Iterable[str | 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
visualColumn(self, logicalColumn: int) int
visualItemRect(self, item: QTableWidgetItem | None) QRect
visualRow(self, logicalRow: int) int
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

class ItemType

Bases: int

Type = 0
UserType = 1000
background(self) QBrush
checkState(self) Qt.CheckState
clone(self) QTableWidgetItem | None
column(self) int
data(self, role: int) Any
flags(self) Qt.ItemFlags
font(self) QFont
foreground(self) QBrush
icon(self) QIcon
isSelected(self) bool
read(self, in_: QDataStream)
row(self) int
setBackground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)
setCheckState(self, state: Qt.CheckState)
setData(self, role: int, value: Any)
setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)
setFont(self, afont: QFont)
setForeground(self, brush: QBrush | QColor | Qt.GlobalColor | QGradient)
setIcon(self, aicon: QIcon)
setSelected(self, aselect: bool)
setSizeHint(self, size: QSize)
setStatusTip(self, astatusTip: str | None)
setText(self, atext: str | None)
setTextAlignment(self, alignment: int)
setToolTip(self, atoolTip: str | None)
setWhatsThis(self, awhatsThis: str | None)
sizeHint(self) QSize
statusTip(self) str
tableWidget(self) QTableWidget | None
text(self) str
textAlignment(self) int
toolTip(self) str
type(self) int
whatsThis(self) str
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
class TabPosition

Bases: int

class TabShape

Bases: int

Triangular = 1
West = 2
addTab(self, widget: QWidget | None, a1: str | None) int
addTab(self, widget: QWidget | None, icon: QIcon, label: str | None) int
changeEvent(self, a0: QEvent | None)
clear(self)
cornerWidget(self, corner: Qt.Corner = Qt.TopRightCorner) QWidget | None
count(self) int
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

currentIndex(self) int
currentWidget(self) QWidget | None
documentMode(self) bool
elideMode(self) Qt.TextElideMode
event(self, a0: QEvent | None) bool
hasHeightForWidth(self) bool
heightForWidth(self, width: int) int
iconSize(self) QSize
indexOf(self, widget: QWidget | None) int
initStyleOption(self, option: QStyleOptionTabWidgetFrame | None)
insertTab(self, index: int, widget: QWidget | None, a2: str | None) int
insertTab(self, index: int, widget: QWidget | None, icon: QIcon, label: str | None) int
isMovable(self) bool
isTabEnabled(self, index: int) bool
isTabVisible(self, index: int) bool
keyPressEvent(self, a0: QKeyEvent | None)
minimumSizeHint(self) QSize
paintEvent(self, a0: QPaintEvent | None)
removeTab(self, index: int)
resizeEvent(self, a0: QResizeEvent | None)
setCornerWidget(self, widget: QWidget | None, corner: Qt.Corner = Qt.TopRightCorner)
setCurrentIndex(self, index: int)
setCurrentWidget(self, widget: QWidget | None)
setDocumentMode(self, set: bool)
setElideMode(self, a0: Qt.TextElideMode)
setIconSize(self, size: QSize)
setMovable(self, movable: bool)
setTabBar(self, a0: QTabBar | None)
setTabBarAutoHide(self, enabled: bool)
setTabEnabled(self, index: int, a1: bool)
setTabIcon(self, index: int, icon: QIcon)
setTabPosition(self, a0: QTabWidget.TabPosition)
setTabShape(self, s: QTabWidget.TabShape)
setTabText(self, index: int, a1: str | None)
setTabToolTip(self, index: int, tip: str | None)
setTabVisible(self, index: int, visible: bool)
setTabWhatsThis(self, index: int, text: str | None)
setTabsClosable(self, closeable: bool)
setUsesScrollButtons(self, useButtons: bool)
showEvent(self, a0: QShowEvent | None)
sizeHint(self) QSize
tabBar(self) QTabBar | None
tabBarAutoHide(self) bool
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

tabIcon(self, index: int) QIcon
tabInserted(self, index: int)
tabPosition(self) QTabWidget.TabPosition
tabRemoved(self, index: int)
tabShape(self) QTabWidget.TabShape
tabText(self, index: int) str
tabToolTip(self, index: int) str
tabWhatsThis(self, index: int) str
tabsClosable(self) bool
usesScrollButtons(self) bool
widget(self, index: int) QWidget | None
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)
columnCount(self) int
currentColumn(self) int
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

dropEvent(self, event: QDropEvent | None)
dropMimeData(self, parent: QTreeWidgetItem | None, index: int, data: QMimeData | None, action: Qt.DropAction) bool
editItem(self, item: QTreeWidgetItem | None, column: int = 0)
event(self, e: QEvent | None) bool
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

itemWidget(self, item: QTreeWidgetItem | None, column: int) QWidget | None
mimeData(self, items: Iterable[QTreeWidgetItem]) QMimeData | None
mimeTypes(self) List[str]
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]
setColumnCount(self, columns: int)
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)
setHeaderLabel(self, alabel: str | None)
setHeaderLabels(self, labels: Iterable[str | None])
setItemWidget(self, item: QTreeWidgetItem | None, column: int, widget: QWidget | None)
setModel(self, model: QAbstractItemModel | None)
setSelectionModel(self, selectionModel: QItemSelectionModel | None)
sortColumn(self) int
sortItems(self, column: int, order: Qt.SortOrder)
supportedDropActions(self) Qt.DropActions
takeTopLevelItem(self, index: int) QTreeWidgetItem | None
topLevelItem(self, index: int) QTreeWidgetItem | None
topLevelItemCount(self) int
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

class ChildIndicatorPolicy

Bases: int

DontShowIndicator = 1
DontShowIndicatorWhenChildless = 2
class ItemType

Bases: int

ShowIndicator = 0
Type = 0
UserType = 1000
addChild(self, child: QTreeWidgetItem | None)
addChildren(self, children: Iterable[QTreeWidgetItem])
background(self, column: int) QBrush
checkState(self, column: int) Qt.CheckState
child(self, index: int) QTreeWidgetItem | None
childCount(self) int
childIndicatorPolicy(self) QTreeWidgetItem.ChildIndicatorPolicy
clone(self) QTreeWidgetItem | None
columnCount(self) int
data(self, column: int, role: int) Any
emitDataChanged(self)
flags(self) Qt.ItemFlags
font(self, column: int) QFont
foreground(self, column: int) QBrush
icon(self, column: int) QIcon
indexOfChild(self, achild: QTreeWidgetItem | None) int
insertChild(self, index: int, child: QTreeWidgetItem | None)
insertChildren(self, index: int, children: Iterable[QTreeWidgetItem])
isDisabled(self) bool
isExpanded(self) bool
isFirstColumnSpanned(self) bool
isHidden(self) bool
isSelected(self) bool
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)
setData(self, column: int, role: int, value: Any)
setDisabled(self, disabled: bool)
setExpanded(self, aexpand: bool)
setFirstColumnSpanned(self, aspan: bool)
setFlags(self, aflags: Qt.ItemFlags | Qt.ItemFlag)
setFont(self, column: int, afont: QFont)
setForeground(self, column: int, brush: QBrush | QColor | Qt.GlobalColor | QGradient)
setHidden(self, ahide: bool)
setIcon(self, column: int, aicon: QIcon)
setSelected(self, aselect: bool)
setSizeHint(self, column: int, size: QSize)
setStatusTip(self, column: int, astatusTip: str | None)
setText(self, column: int, atext: str | None)
setTextAlignment(self, column: int, alignment: int)
setToolTip(self, column: int, atoolTip: str | None)
setWhatsThis(self, column: int, awhatsThis: str | None)
sizeHint(self, column: int) QSize
sortChildren(self, column: int, order: Qt.SortOrder)
statusTip(self, column: int) str
takeChild(self, index: int) QTreeWidgetItem | None
takeChildren(self) List[QTreeWidgetItem]
text(self, column: int) str
textAlignment(self, column: int) int
toolTip(self, column: int) str
treeWidget(self) QTreeWidget | None
type(self) int
whatsThis(self, column: int) str
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 RenderFlag

Bases: int

class RenderFlags
class RenderFlags(f: QWidget.RenderFlags | QWidget.RenderFlag)
class RenderFlags(a0: QWidget.RenderFlags)

Bases: simplewrapper

acceptDrops(self) bool
accessibleDescription(self) str
accessibleName(self) str
actionEvent(self, a0: QActionEvent | None)
actions(self) List[QAction]
activateWindow(self)
addAction(self, action: QAction | None)
addActions(self, actions: Iterable[QAction])
adjustSize(self)
autoFillBackground(self) bool
backgroundRole(self) QPalette.ColorRole
baseSize(self) QSize
changeEvent(self, a0: QEvent | None)
childAt(self, p: QPoint) QWidget | None
childAt(self, ax: int, ay: int) QWidget | None
childrenRect(self) QRect
childrenRegion(self) QRegion
clearFocus(self)
clearMask(self)
close(self) bool
closeEvent(self, a0: QCloseEvent | None)
contentsMargins(self) QMargins
contentsRect(self) QRect
contextMenuEvent(self, a0: QContextMenuEvent | None)
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
cursor(self) QCursor
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

destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
devType(self) int
dragEnterEvent(self, a0: QDragEnterEvent | None)
dragLeaveEvent(self, a0: QDragLeaveEvent | None)
dragMoveEvent(self, a0: QDragMoveEvent | None)
dropEvent(self, a0: QDropEvent | None)
effectiveWinId(self) PyQt5.sip.voidptr
ensurePolished(self)
enterEvent(self, a0: QEvent | None)
event(self, a0: QEvent | None) bool
find(a0: PyQt5.sip.voidptr) QWidget | None
focusInEvent(self, a0: QFocusEvent | None)
focusNextChild(self) bool
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, a0: QFocusEvent | None)
focusPolicy(self) Qt.FocusPolicy
focusPreviousChild(self) bool
focusProxy(self) QWidget | None
focusWidget(self) QWidget | None
font(self) QFont
fontInfo(self) QFontInfo
fontMetrics(self) QFontMetrics
foregroundRole(self) QPalette.ColorRole
frameGeometry(self) QRect
frameSize(self) QSize
geometry(self) QRect
getContentsMargins(self)
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) QPixmap
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
graphicsEffect(self) QGraphicsEffect | None
graphicsProxyWidget(self) QGraphicsProxyWidget | None
hasFocus(self) bool
hasHeightForWidth(self) bool
hasMouseTracking(self) bool
hasTabletTracking(self) bool
height(self) int
heightForWidth(self, a0: int) int
hide(self)
hideEvent(self, a0: QHideEvent | None)
initPainter(self, painter: QPainter | None)
inputMethodEvent(self, a0: QInputMethodEvent | None)
inputMethodHints(self) Qt.InputMethodHints
inputMethodQuery(self, a0: Qt.InputMethodQuery) Any
insertAction(self, before: QAction | None, action: QAction | None)
insertActions(self, before: QAction | None, actions: Iterable[QAction])
isActiveWindow(self) bool
isAncestorOf(self, child: QWidget | None) bool
isEnabled(self) bool
isEnabledTo(self, a0: QWidget | None) bool
isFullScreen(self) bool
isHidden(self) bool
isLeftToRight(self) bool
isMaximized(self) bool
isMinimized(self) bool
isModal(self) bool
isRightToLeft(self) bool
isVisible(self) bool
isVisibleTo(self, a0: QWidget | None) bool
isWindow(self) bool
isWindowModified(self) bool
keyPressEvent(self, a0: QKeyEvent | None)
keyReleaseEvent(self, a0: QKeyEvent | None)
keyboardGrabber() QWidget | None
layout(self) QLayout | None
layoutDirection(self) Qt.LayoutDirection
leaveEvent(self, a0: QEvent | None)
locale(self) QLocale
lower(self)
mapFrom(self, a0: QWidget | None, a1: QPoint) QPoint
mapFromGlobal(self, a0: QPoint) QPoint
mapFromParent(self, a0: QPoint) QPoint
mapTo(self, a0: QWidget | None, a1: QPoint) QPoint
mapToGlobal(self, a0: QPoint) QPoint
mapToParent(self, a0: QPoint) QPoint
mask(self) QRegion
maximumHeight(self) int
maximumSize(self) QSize
maximumWidth(self) int
metric(self, a0: QPaintDevice.PaintDeviceMetric) int
minimumHeight(self) int
minimumSize(self) QSize
minimumSizeHint(self) QSize
minimumWidth(self) int
mouseDoubleClickEvent(self, a0: QMouseEvent | None)
mouseGrabber() QWidget | None
mouseMoveEvent(self, a0: QMouseEvent | None)
mousePressEvent(self, a0: QMouseEvent | None)
mouseReleaseEvent(self, a0: QMouseEvent | None)
move(self, a0: QPoint)
move(self, ax: int, ay: int) None
moveEvent(self, a0: QMoveEvent | None)
nativeEvent(self, eventType: QByteArray | bytes | bytearray, message: PyQt5.sip.voidptr | None)
nativeParentWidget(self) QWidget | None
nextInFocusChain(self) QWidget | None
normalGeometry(self) QRect
overrideWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)
overrideWindowState(self, state: Qt.WindowStates | Qt.WindowState)
paintEngine(self) QPaintEngine | None
paintEvent(self, a0: QPaintEvent | None)
palette(self) QPalette
parentWidget(self) QWidget | None
pos(self) QPoint
previousInFocusChain(self) QWidget | None
raise_(self)
rect(self) QRect
releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, id: int)
removeAction(self, action: QAction | None)
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
resize(self, a0: QSize)
resize(self, w: int, h: int) None
resizeEvent(self, a0: QResizeEvent | None)
restoreGeometry(self, geometry: QByteArray | bytes | bytearray) bool
saveGeometry(self) QByteArray
screen(self) QScreen | None
scroll(self, dx: int, dy: int)
scroll(self, dx: int, dy: int, a2: QRect) None
setAcceptDrops(self, on: bool)
setAccessibleDescription(self, description: str | None)
setAccessibleName(self, name: str | None)
setAttribute(self, attribute: Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, enabled: bool)
setBackgroundRole(self, a0: QPalette.ColorRole)
setBaseSize(self, basew: int, baseh: int)
setBaseSize(self, s: QSize) None
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)
setDisabled(self, a0: bool)
setEnabled(self, a0: bool)
setFixedHeight(self, h: int)
setFixedSize(self, a0: QSize)
setFixedSize(self, w: int, h: int) None
setFixedWidth(self, w: int)
setFocus(self)
setFocus(self, reason: Qt.FocusReason) None
setFocusPolicy(self, policy: Qt.FocusPolicy)
setFocusProxy(self, a0: QWidget | None)
setFont(self, a0: QFont)
setForegroundRole(self, a0: QPalette.ColorRole)
setGeometry(self, a0: QRect)
setGeometry(self, ax: int, ay: int, aw: int, ah: int) None
setGraphicsEffect(self, effect: QGraphicsEffect | None)
setHidden(self, hidden: bool)
setInputMethodHints(self, hints: Qt.InputMethodHints | Qt.InputMethodHint)
setLayout(self, a0: QLayout | None)
setLayoutDirection(self, direction: Qt.LayoutDirection)
setLocale(self, locale: QLocale)
setMask(self, a0: QBitmap)
setMask(self, a0: QRegion) None
setMaximumHeight(self, maxh: int)
setMaximumSize(self, maxw: int, maxh: int)
setMaximumSize(self, s: QSize) None
setMaximumWidth(self, maxw: int)
setMinimumHeight(self, minh: int)
setMinimumSize(self, minw: int, minh: int)
setMinimumSize(self, s: QSize) None
setMinimumWidth(self, minw: int)
setMouseTracking(self, enable: bool)
setPalette(self, a0: QPalette)
setParent(self, parent: QWidget | None)
setParent(self, parent: QWidget | None, f: Qt.WindowFlags | Qt.WindowType) None
setShortcutAutoRepeat(self, id: int, enabled: bool = True)
setShortcutEnabled(self, id: int, enabled: bool = True)
setSizeIncrement(self, w: int, h: int)
setSizeIncrement(self, s: QSize) None
setSizePolicy(self, a0: QSizePolicy)
setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) None
setStatusTip(self, a0: str | None)
setStyle(self, a0: QStyle | None)
setStyleSheet(self, styleSheet: str | None)
setTabOrder(a0: QWidget | None, a1: QWidget | None)
setTabletTracking(self, enable: bool)
setToolTip(self, a0: str | None)
setToolTipDuration(self, msec: int)
setUpdatesEnabled(self, enable: bool)
setVisible(self, visible: bool)
setWhatsThis(self, a0: str | None)
setWindowFilePath(self, filePath: str | None)
setWindowFlag(self, a0: Qt.WindowType, on: bool = True)
setWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)
setWindowIcon(self, icon: QIcon)
setWindowIconText(self, a0: str | None)
setWindowModality(self, windowModality: Qt.WindowModality)
setWindowModified(self, a0: bool)
setWindowOpacity(self, level: float)
setWindowRole(self, a0: str | None)
setWindowState(self, state: Qt.WindowStates | Qt.WindowState)
setWindowTitle(self, a0: str | None)
sharedPainter(self) QPainter | None
show(self)
showEvent(self, a0: QShowEvent | None)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
size(self) QSize
sizeHint(self) QSize
sizeIncrement(self) QSize
sizePolicy(self) QSizePolicy
stackUnder(self, a0: QWidget | None)
statusTip(self) str
style(self) QStyle | None
styleSheet(self) str
tabletEvent(self, a0: QTabletEvent | None)
testAttribute(self, attribute: Qt.WidgetAttribute) bool
toolTip(self) str
toolTipDuration(self) int
underMouse(self) 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)
updatesEnabled(self) bool
visibleRegion(self) QRegion
whatsThis(self) str
wheelEvent(self, a0: QWheelEvent | None)
width(self) int
winId(self) PyQt5.sip.voidptr
window(self) QWidget | None
windowFilePath(self) str
windowFlags(self) Qt.WindowFlags
windowHandle(self) QWindow | None
windowIcon(self) QIcon
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

windowIconText(self) str
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
windowOpacity(self) float
windowRole(self) str
windowState(self) Qt.WindowStates
windowTitle(self) str
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
x(self) int
y(self) int
populse_mia.user_interface.pop_ups.FIELD_TYPE_BOOLEAN

alias of bool

populse_mia.user_interface.pop_ups.FIELD_TYPE_DATE

alias of date

populse_mia.user_interface.pop_ups.FIELD_TYPE_DATETIME

alias of datetime

populse_mia.user_interface.pop_ups.FIELD_TYPE_FLOAT

alias of float

populse_mia.user_interface.pop_ups.FIELD_TYPE_INTEGER

alias of int

populse_mia.user_interface.pop_ups.FIELD_TYPE_STRING

alias of str

populse_mia.user_interface.pop_ups.FIELD_TYPE_TIME

alias of time

class populse_mia.user_interface.pop_ups.Project(project_root_folder, new_project)[source]

Bases: object

Class 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

  1. 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

  1. Filters them based on their presence in the Mia database

  2. Updates brick metadata with execution status and outputs

  3. 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 as failed if 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_info where job_info contains: - workflow (int): Workflow identifier. - job: Soma-Workflow job instance. - job_id (int): Job identifier. - swf_status (tuple): Raw Soma-Workflow status

tuple.

  • running (bool): True of any job in the workflow

    is running

  • failed (bool): True if any job in the workflow

    failed.

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

saveConfig()[source]

Save the changes in the properties file.

save_current_filter(custom_filters)[source]

Save the current filter.

Parameters:

custom_filters – The customized filter

saveModifications()[source]

Save the pending operations of the project (actions still not saved).

setCurrentFilter(new_filter)[source]

Set the current filter of the project.

Parameters:

new_filter – New Filter object

setDate(date)[source]

Set the date of the project.

Parameters:

date – New date of the project

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.

unsaveModifications()[source]

Unsave the pending operations of the project.

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: object

Object 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.

get_afni_path()[source]

Get the AFNI path.

Returns:

(str) Path to AFNI, or “” if unknown.

get_ants_path()[source]

Get the ANTS path.

Returns:

(str) Path to ANTS, or “” if unknown.

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 modules

  • engine: 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_mainwindow_size()[source]

Get the main window size.

Returns:

(list) Main window size.

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_path()[source]

Get the path to the matlab executable.

Returns:

(str) A path.

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.

get_mri_conv_path()[source]

Get the MRIManager.jar path.

Returns:

(str) A path.

get_mrtrix_path()[source]

Get the mrtrix path.

Returns:

(str) A path.

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_opened_projects()[source]

Get opened projects.

Returns:

(list) Opened projects.

get_projects_save_path()[source]

Get the path where projects are saved.

Returns:

(str) A path.

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.

get_resources_path()[source]

Get the resources path.

Returns:

(str) A path.

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.

getSourceImageDir()[source]

Get the source directory for project images.

Returns:

(str) A path.

get_spm_path()[source]

Get the path of SPM.

Returns:

(str) A path.

get_spm_standalone_path()[source]

Get the path to the SPM12 standalone version.

Returns:

(str) A path.

getTextColor()[source]

Get the text color.

Returns:

(str) The text color.

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.

set_admin_hash(admin_hash)[source]

Set the password hash.

Parameters:

admin_hash – A string.

set_afni_path(path)[source]

Set the AFNI path.

Parameters:

path – (str) A path.

set_ants_path(path)[source]

Set the ANTS path

Parameters:

path – (str) A path.

setAutoSave(save)[source]

Set auto-save mode.

Parameters:

save – A boolean.

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_mainwindow_size(size)[source]

Set main window size.

Parameters:

size – A list of two integers.

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.

set_mri_conv_path(path)[source]

Set the MRIManager.jar path.

Parameters:

path – (str) A path.

set_mrtrix_path(path)[source]

Set the mrtrix path.

Parameters:

path – (str) A path.

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.

set_resources_path(path)[source]

Set the resources path.

Parameters:

path – (str) A path.

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_path(path)[source]

Set the path of SPM (license version).

Parameters:

path – (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_user_mode(user_mode)[source]

Enable or disable user mode.

Parameters:

user_mode – 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: QLabel

A 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

__init__()[source]

Initializes the ClickableLabel.

mousePressEvent(event)[source]

Handles the mouse press event by emitting the clicked signal.

Parameters:

(QMouseEvent) (event) – The mouse event triggering the signal.

class populse_mia.user_interface.pop_ups.DefaultValueListCreation(parent, type)[source]

Bases: QDialog

A 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: QLineEdit

A QLineEdit override for handling default values.

This class customizes QLineEdit to handle list-type default values by displaying a popup when clicked.

__init__(parent)[source]
Parameters:

parent – The parent widget, expected to have a type attribute.

mousePressEvent(event)[source]

Handles mouse press events.

If the parent’s type is a list, displays a popup for list creation.

Parameters:

(QMouseEvent) (event) – The mouse press event (unused).

class populse_mia.user_interface.pop_ups.PopUpAddPath(project, databrowser)[source]

Bases: QDialog

Dialog for adding a document to the project without using the MRI Files Manager (File > Import).

__init__(project, databrowser)[source]

Initializes the pop-up for adding a document.

Parameters:
  • (Project) (project) – The current project instance.

  • (DataBrowser) (databrowser) – The application’s data browser.

file_to_choose()[source]

Opens a file dialog for selecting documents.

find_type()[source]

Determines the document type when the file path changes.

save_path()[source]

Adds the selected document paths to the database and updates the UI.

class populse_mia.user_interface.pop_ups.PopUpAddTag(databrowser, project)[source]

Bases: QDialog

Dialog 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

_connect_signals()[source]

Connect signals to slots.

_setup_layouts()[source]

Set up the layout of UI elements.

_setup_ui()[source]

Set up the dialog UI elements.

_show_error(text, informative_text)[source]

Display an error message box.

Parameters:
  • text – The main error message text

  • informative_text – The additional informative text

ok_action()[source]

Validate inputs and add the new tag if all fields are correct.

Performs validation on the tag name, type and default value to ensure they are valid before adding the tag to the project.

on_activated(text)[source]

Update the default value when the tag type changes.

Parameters:

text – The new type selected from combo box

class populse_mia.user_interface.pop_ups.PopUpCloneTag(databrowser, project)[source]

Bases: QDialog

Dialog 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

_setup_ui()[source]

Set up the dialog UI elements.

_show_error(text, informative_text)[source]

Display an error message box.

Parameters:
  • text – The main error message text

  • informative_text – The additional informative text

ok_action(project)[source]

Validate new tag name and clone the selected tag if valid.

Parameters:

project – The current project

search_str(project, search_text)[source]

Filter the tag list based on the search string.

Parameters:
  • project – The current project

  • search_text – The search string to filter by

class populse_mia.user_interface.pop_ups.PopUpClosePipeline(pipeline_name)[source]

Bases: QDialog

Dialog 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.

bool_save_as

Indicates if the pipeline should be saved under a new name.

Type:

bool

bool_exit

Indicates if the editor can be closed.

Type:

bool

pipeline_name

Name of the pipeline being edited.

Type:

str

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

_connect_signals()[source]

Connect button signals to their respective slots.

_setup_ui()[source]

Set up the dialog’s user interface.

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.

do_not_save_clicked()[source]

Handle the ‘Do not save’ button click.

Sets bool_exit to True, emits do_not_save_signal, and closes the dialog.

save_as_clicked()[source]

Handle the ‘Save’ button click.

Sets bool_save_as and bool_exit to True, emits save_as_signal, and closes the dialog.

class populse_mia.user_interface.pop_ups.PopUpDataBrowserCurrentSelection(project, databrowser, filter, main_window, TableDataBrowser)[source]

Bases: QDialog

Dialog 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

_set_dialog_size()[source]

Set the dialog size based on screen resolution.

_setup_ui(TableDataBrowser)[source]

Set up the dialog’s user interface.

Parameters:

TableDataBrowser – Class for displaying data in a table format

ok_clicked()[source]

Update the scan_list attribute of components when OK is clicked.

This method propagates the current filter (selected documents) to various components in the main window’s pipeline manager, and marks the data as sent in the data browser before closing the dialog.

class populse_mia.user_interface.pop_ups.PopUpDeletedProject(deleted_projects)[source]

Bases: QMessageBox

Message 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.

deleted_projects

List of project names that are no longer accessible.

Type:

list

__init__(deleted_projects)[source]

Initialize the message box with a list of inaccessible projects.

Parameters:

(list) (deleted_projects) – List of project names that are no longer accessible (deleted, renamed, or moved).

_connect_signals()[source]

Connect button signals to their respective slots.

_setup_message_box()[source]

Configure the message box appearance and content.

class populse_mia.user_interface.pop_ups.PopUpDeleteProject(main_window)[source]

Bases: QDialog

Dialog 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

_delete_project(project_path, opened_projects)[source]

Handles project deletion, updating application state accordingly.

Parameters:
  • (str) (project_path) – The path of the project to delete

  • (list) (opened_projects) – The list of currently opened projects

_setup_buttons()[source]

Creates and configures the dialog buttons.

_setup_layout()[source]

Configures the main layout of the dialog.

_setup_ui()[source]

Sets up the user interface components.

ok_clicked()[source]

Deletes the selected projects after user confirmation.

class populse_mia.user_interface.pop_ups.PopUpFilterSelection(project)[source]

Bases: QDialog

Dialog 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

cancel_clicked()[source]

Closes the pop-up dialog.

ok_clicked()[source]

Handles actions when the “OK” button is clicked.

This method should be overridden in subclasses to implement specific behavior.

search_str(search_text)[source]

Filters the list of saved filters based on the search input.

Parameters:

(str) (search_text) – The text pattern to search for

class populse_mia.user_interface.pop_ups.PopUpInformation(project)[source]

Bases: QWidget

Popup 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

__init__(project)[source]

Initializes the popup window with project details.

Parameters:

(Project) (project) – The current project instance

class populse_mia.user_interface.pop_ups.PopUpInheritanceDict(values, node_name, plug_name, iterate)[source]

Bases: QDialog

Dialog 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.

ignore_clicked()[source]

Handle Ignore button click.

Accepts the dialog with tag inheritance ignored for current plug.

ignore_node_clicked()[source]

Handle ‘Ignore for all nodes in the pipeline’ button click.

Accepts the dialog with tag inheritance ignored for the entire pipeline.

class populse_mia.user_interface.pop_ups.PopUpMultipleSort(project, table_data_browser)[source]

Bases: QDialog

Dialog 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

_setup_ui_elements()[source]

Create and configure all UI elements.

add_tag()[source]

Add a new tag button to the sort criteria.

fill_values(idx)[source]

Collect unique values for the selected tag.

Parameters:

idx – Index of the tag button in the push_buttons list

refresh_layout()[source]

Update the dialog layout to reflect current tag buttons.

remove_tag()[source]

Remove the last tag button from the sort criteria.

select_tag(idx)[source]

Open a pop-up dialog to choose a tag for the specified button.

Parameters:

idx – Index of the button in the push_buttons list

sort_scans()[source]

Collect sorting parameters and send them to the data browser.

class populse_mia.user_interface.pop_ups.PopUpNewProject[source]

Bases: QFileDialog

Dialog 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

__init__()[source]

Initialize the new project dialog with appropriate settings.

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: QFileDialog

Dialog 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

__init__()[source]
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: QDialog

Dialog 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

admin_mode_switch()[source]

Handle the admin mode checkbox click event.

browse_afni()[source]

Browse for the AFNI directory.

browse_ants()[source]

Browse for the ANTS directory.

browse_freesurfer()[source]

Browse for the FreeSurfer env file.

browse_fsl()[source]

Browse for the FSL config file.

browse_matlab()[source]

Browse for the Matlab file.

browse_matlab_standalone()[source]

Browse for the Matlab standalone directory.

browse_mri_conv_path()[source]

Browse for the MRIFileManager.jar file.

browse_mrtrix()[source]

Browse for the mrtrix directory.

browse_projects_save_path()[source]

Browse for the projects folder.

browse_resources_path()[source]

Browse for the resources folder.

browse_spm()[source]

Browse for the SPM directory.

browse_spm_standalone()[source]

Browse for the SPM standalone directory.

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_afni_group()[source]

Create the AFNI group box.

create_ants_group()[source]

Create the ANTS group box.

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_freesurfer_group()[source]

Create the FreeSurfer group box.

create_fsl_group()[source]

Create the FSL group box.

create_global_preferences()[source]

Create the global preferences group box.

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_matlab_group()[source]

Create the Matlab group box.

create_mrtrix_group()[source]

Create the mrtrix group box.

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_projects_preferences()[source]

Create the projects preferences group box.

create_populse_preferences()[source]

Create the POPULSE third party preferences group box.

create_resources_preferences()[source]

Create the external resources preferences group box.

create_spm_group()[source]

Create the SPM group box.

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

edit_config_file()[source]

Create a window to view, edit the mia configuration file.

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.

load_config()[source]

Load the configuration settings.

ok_clicked()[source]

Handle the OK button click event.

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.

setup_ui()[source]

Set up the user interface components.

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.

use_afni_changed()[source]

Handle the use_afni checkbox change event.

use_ants_changed()[source]

Handle the use_ants checkbox change event.

use_current_mainwindow_size()[source]

Use the current main window size.

use_freesurfer_changed()[source]

Handle the use_freesurfer checkbox change event.

use_fsl_changed()[source]

Handle the use_fsl checkbox change event.

use_matlab_changed()[source]

Handle the use_matlab checkbox change event.

use_matlab_standalone_changed()[source]

Handle the use_matlab_standalone checkbox change event.

use_mrtrix_changed()[source]

Handle the use_mrtrix checkbox change event.

use_spm_changed()[source]

Handle the use_spm checkbox change event.

use_spm_standalone_changed()[source]

Handle the use_spm_standalone checkbox change event.

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: QDialog

Dialog 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

__init__(project, databrowser, old_tags)[source]

Initialize the project properties dialog.

Parameters:
  • project – current project in the software

  • databrowser – data browser instance of the software

  • old_tags – visualized tags before opening this dialog

ok_clicked()[source]

Saves the modifications and updates the data browser.

class populse_mia.user_interface.pop_ups.PopUpQuit(project)[source]

Bases: QDialog

Dialog 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

__init__(project)[source]

Initialize the quit confirmation dialog.

Parameters:

project – Current project with unsaved modifications.

can_exit()[source]

Check if the application can exit.

Return (bool):

True if exit is allowed.

cancel_clicked()[source]

Handle cancel action by preventing exit.

do_not_save_clicked()[source]

Handle ‘do not save’ action by allowing exit without saving.

save_as_clicked()[source]

Handle save action by emitting save signal and allowing exit.

class populse_mia.user_interface.pop_ups.PopUpRemoveScan(scan, size)[source]

Bases: QDialog

Dialog 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.

yes_all_clicked()[source]

Handle ‘Yes to All’ action.

Clears stop flag and indicates a global ‘Yes’ action.

yes_clicked()[source]

Handle ‘Yes’ action.

Clears both stop and repeat flags for a single item removal.

class populse_mia.user_interface.pop_ups.PopUpRemoveTag(databrowser, project)[source]

Bases: QDialog

Dialog 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.

ok_action()[source]

Process selected tags for removal and update the data browser.

Retrieves selected tags and passes them to the data browser for removal. Closes the dialog after processing.

search_str(search_pattern)[source]

Filter tags based on search pattern.

Parameters:

search_pattern – String to match against tag names.

class populse_mia.user_interface.pop_ups.PopUpSaveProjectAs[source]

Bases: QDialog

Dialog 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.

fill_input(name)[source]

Fill the project name input field with the selected project name.

Parameters:

name – Name of the project to fill in the input field.

return_value()[source]

Validate and process the selected project name.

Checks project name validity, handles potential naming conflicts, and emits a signal when a valid project name is selected.

Return (str):

Full path of the new project if successful, None otherwise.

class populse_mia.user_interface.pop_ups.PopUpSeeAllProjects(saved_projects, main_window)[source]

Bases: QDialog

A 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.

item_to_path()[source]

Returns the path of the first selected item.

Return (str):

Absolute path of the selected project, or empty string if no selection.

open_project()[source]

Attempt to switch to the selected project.

Opens the selected project in the main window if a valid project is chosen. Closes the dialog upon successful project switch.

class populse_mia.user_interface.pop_ups.PopUpSelectFilter(project, databrowser)[source]

Bases: PopUpFilterSelection

Popup window for selecting and opening a previously saved filter.

__init__(project, databrowser)[source]

Initializes the PopUpSelectFilter dialog

Parameters:
  • (Project) (project) – The current project instance.

  • (DataBrowser) (databrowser) – The data browser instance.

ok_clicked()[source]

Saves the selected filter as the current filter and updates the data browser.

class populse_mia.user_interface.pop_ups.PopUpSelectIteration(iterated_tag, tag_values, selected_values)[source]

Bases: QDialog

Dialog 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.

ok_clicked()[source]

Stores selected values and closes the dialog.

class populse_mia.user_interface.pop_ups.PopUpTagSelection(project)[source]

Bases: QDialog

A 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

cancel_clicked()[source]

Close the dialog without selecting a tag.

item_clicked(item)[source]

Handle item selection by checking/unchecking tags.

Parameters:

(QListWidgetItem) – The clicked list item

ok_clicked()[source]

Placeholder method to be overridden by subclasses.

Defines actions to take when the OK button is clicked.

search_str(str_search)[source]

Filter tags based on search term.

Parameters:

(str) (str_search) – Text to search for in tag names

class populse_mia.user_interface.pop_ups.PopUpSelectTag(project)[source]

Bases: PopUpTagSelection

A 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.

_populate_tag_list(field_names)[source]

Populate the list widget with tags from the database.

Parameters:

(list) (field_names) – List of available field names/tags.

ok_clicked()[source]

Save the selected tag and update the mini viewer.

Finds the checked tag and sets it as the new thumbnail tag. Closes the dialog after selection.

class populse_mia.user_interface.pop_ups.PopUpSelectTagCountTable(project, tags_to_display, tag_name_checked=None)[source]

Bases: PopUpTagSelection

A 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.

ok_clicked()[source]

Determine the selected tag and close the dialog.

Finds the first checked item and sets it as the selected tag, then closes the dialog.

class populse_mia.user_interface.pop_ups.PopUpShowHistory(project, brick_uuid, scan, databrowser, main_window)[source]

Bases: QDialog

A 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.

adjust_size()[source]

Adjust the size of the dialog based on screen resolution.

file_clicked()[source]

Close the history window and select the file in the data browser.

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.

setup_ui()[source]

Set up the user interface components.

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.

update_table_with_brick_data(brick_row, full_brick_name)[source]

Update the table with the brick’s input and output data after processing.

Parameters:
  • (list) (full_brick_name) – A list containing the brick data to update the table with.

  • (list) – The full name of the brick, split into parts.

class populse_mia.user_interface.pop_ups.PopUpVisualizedTags(project, visualized_tags)[source]

Bases: QWidget

A 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_button_layout()[source]

Create the layout for selection buttons.

_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_left_layout()[source]

Create the layout for available tags.

_create_right_layout()[source]

Create the layout for visualized tags.

Create the search bar with placeholder and connection.

_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.

_populate_tags()[source]

Populate the tags list from the project database.

_setup_ui()[source]

Create and layout the user interface components.

search_str(str_search)[source]

Filter tags based on search string.

Parameters:

(str) (str_search) – Search pattern to match against tags

click_select_tag()[source]

Move selected tags from available to visualized list.

Removes selected tags from the left (available) list and adds them to the right (visualized) list.

click_unselect_tag()[source]

Remove selected tags from the visualized list and return them to the available tags list.

Moves selected tags from the right (visualized) list to the left (available) list, maintaining sorted order.

class populse_mia.user_interface.pop_ups.QLabel_clickable(parent=None)[source]

Bases: QLabel

A 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

__init__(parent=None)[source]

Initialize the clickable label.

Parameters:

(QWidget) (parent) – Parent widget.

mousePressEvent(event)[source]

Override the default mouse press event to emit the clicked signal.

Parm event (QMouseEvent):

Mouse press event details.