transfer_blend_shape.gui.common module

class transfer_blend_shape.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.

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