Worker

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

Bases: PyQt5.QtCore.QThread

Execute a function call on a different QThread

Parameters:
  • func – The function object to call
  • args – arguments to pass to the function
  • kwargs – kwargs to pass to the function

Attributes Summary

error
result

Methods Summary

run() Invoke the function

Attributes Documentation

error
result

Methods Documentation

run()

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_infno()