Worker

class glue.utils.qt.Worker(func, *args, **kwargs)[source]

Bases: PyQt4.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()[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_infno()