Threads

class pathomx.threads.Worker(callback, *args, **kwargs)[source]

Worker thread

Inherits from QRunnable to handler worker thread setup, signals and wrap-up.

Parameters:
  • callback (function) – The function callback to run on this worker thread. Supplied args and kwargs will be passed through to the runner.
  • args – Arguments to pass to the callback function
  • kwargs – Keywords to pass to the callback function
process(*args, **kwargs)[source]
run
class pathomx.threads.WorkerSignals[source]

Defines the signals available from a running worker thread.

Supported signals are:

finished
No data
error
tuple (exctype, value, traceback.format_exc() )
result
dict data returned from processing
status
str one of standard status flag message types
error
finished
result
status