skinning.gui.common module

class skinning.gui.common.WaitCursor

Bases: object

Display a wait cursor for the duration of the engine. This will indicate to the user a task is being calculated.

class skinning.gui.common.BlockSignals(*widgets)

Bases: object

Block signals engine that will block the signals of the provided widgets. When exiting the engine the original block signal values will be applied to the widgets.

skinning.gui.common.get_application()

Due to some strange bugs this turns out to be more complicated then it should be. Sometimes we can’t rely on the instance, sometimes the qApp doesn’t exist. This attempts to get it from a global variable first and fall back on the instance. When a QCoreApplication is returned by either the q_application or the instance it is cast into a QApplication object.

Returns:Application
Return type:QtWidgets.QApplication
skinning.gui.common.display_error(func)

The display error function will catch the error of a function and then create a dialog window that displays the error. This way it is not necessary to keep an eye out for the script editor.

skinning.gui.common.clear_layout(layout)
Parameters:layout (QtWidgets.QLayout) –