pySimBlocks.gui.dialogs.settings.project

class pySimBlocks.gui.dialogs.settings.project.ProjectSettingsWidget(project_state: ProjectState, project_controller: ProjectController, settings_dialg)[source]

Bases: QWidget

Edit project-level settings such as paths and external modules.

project_state

Project state edited by the widget.

project_controller

Controller applying the edited settings.

settings_dialog

Parent settings dialog coordinating tab refreshes.

apply() bool[source]

Validate and apply the current project settings.

Returns:

True if the settings were applied successfully, otherwise False.

browse_external_file()[source]

Select an external Python file relative to the project directory.

browse_project_directory()[source]

Select the project directory from the filesystem.

load_project()[source]

Load the project from the selected directory after confirmation.

staticMetaObject = PySide6.QtCore.QMetaObject("ProjectSettingsWidget" inherits "QWidget": )