widgets.tool_configuration_assistant_widget

Widget for assisting the user in configuring tools, such as SpineModel.

author:
  1. Marin (KTH)
date:

9.1.2019

Module Contents

class widgets.tool_configuration_assistant_widget.ToolConfigurationAssistantWidget(toolbox, autorun=True)[source]

Bases: PySide2.QtWidgets.QWidget

A widget to assist the user in configuring external tools such as SpineModel.

toolbox

Parent widget.

Type:ToolboxUI
autorun

whether or not to start configuration process at form load

Type:bool
connect_signals(self)[source]

Connect signals.

add_spine_model_msg(self, msg)[source]

Append message to SpineModel log.

Parameters:msg (str) – String written to QTextBrowser
add_spine_model_error_msg(self, msg)[source]

Append error message to SpineModel log.

Parameters:msg (str) – String written to QTextBrowser
add_spine_model_success_msg(self, msg)[source]

Append success message to SpineModel log.

Parameters:msg (str) – String written to QTextBrowser
configure_spine_model(self)[source]

Run when form loads. Check SpineModel version.

_handle_spine_model_version_check_finished(self, ret)[source]

Run when the Spine Model configuration assistant has finished checking SpineModel version. Install SpineModel if not found, otherwise check the python program used by PyCall.

_handle_spine_model_installation_finished(self, ret)[source]

Run when the Spine Model configuration assistant has finished installing SpineModel. Check the python program used by PyCall.

_handle_py_call_program_check_finished(self, ret)[source]

Run when the Spine Model configuration assistant has finished checking the python program used by PyCall. Install PyCall if not found, otherwise reconfigure PyCall to use same python as Spine Toolbox if it’s not the case.

_handle_py_call_installation_finished(self, ret)[source]

Run when the Spine Model configuration assistant has finished installing PyCall. Check the python program used by PyCall.

_handle_py_call_reconfiguration_finished(self, ret)[source]

Run when the Spine Model configuration assistant has finished reconfiguring PyCall. End Spine Model configuration.

get_permission(self, title, action)[source]

Ask user’s permission to perform an action and return True if granted.

closeEvent(self, event=None)[source]

Handle close widget.

Parameters:event (QEvent) – PySide2 event