Worker

class glue.utils.qt.Worker(parent: QObject = None)[source]

Bases: PyQt5.QtCore.QThread

Execute a function call on a different thread.

Parameters
funccallable

The function object to call

args

Positional arguments to pass to the function

kwargs

Keyword arguments to pass to the function

Attributes Summary

error()

result()

Methods Summary

run(self)

Invoke the function.

Attributes Documentation

error
result

Methods Documentation

run(self)[source]

Invoke the function. Upon successful completion, the result signal will be fired with the output of the function If an exception occurs, the error signal will be fired with the result form sys.exc_info()