Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
qt_gui_py_common.worker_thread.WorkerThread Class Reference
Inheritance diagram for qt_gui_py_common.worker_thread.WorkerThread:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, run_callback, finished_callback=None)
 
def kill (self)
 
def start (self)
 

Public Attributes

 run
 

Private Member Functions

def _finished_handler (self)
 

Private Attributes

 _finished_callback
 

Detailed Description

Run code in a separate thread, get notified upon completion and kill the thread synchronously.

Convenience class built around a QThread

Definition at line 36 of file worker_thread.py.

Constructor & Destructor Documentation

◆ __init__()

def qt_gui_py_common.worker_thread.WorkerThread.__init__ (   self,
  run_callback,
  finished_callback = None 
)

Definition at line 43 of file worker_thread.py.

Member Function Documentation

◆ _finished_handler()

def qt_gui_py_common.worker_thread.WorkerThread._finished_handler (   self)
private

Definition at line 53 of file worker_thread.py.

◆ kill()

def qt_gui_py_common.worker_thread.WorkerThread.kill (   self)

Definition at line 59 of file worker_thread.py.

◆ start()

def qt_gui_py_common.worker_thread.WorkerThread.start (   self)

Definition at line 48 of file worker_thread.py.

Member Data Documentation

◆ _finished_callback

qt_gui_py_common.worker_thread.WorkerThread._finished_callback
private

Definition at line 46 of file worker_thread.py.

◆ run

qt_gui_py_common.worker_thread.WorkerThread.run

Definition at line 45 of file worker_thread.py.


The documentation for this class was generated from the following file:


qt_gui_py_common
Author(s): Dorian Scholz
autogenerated on Fri Jun 24 2022 02:42:40